hibernate 一對多,多對一,一對一,多對多 映射

1.多對一映射  many-to-one 單向多對一映射(以customer--order爲例)html 一個customer能夠有多個order,一個order只能對應一個customerjava 實體類中Order中存放一個Customer的對象sql customer.hbm.xml映射文件數據庫 <hibernate-mapping> <class table="CUSTOMERS" n
相關文章
相關標籤/搜索