使用XML與hibernate在基於一表聯合主鍵時出現expecting IdClass mapping情況

以表user2爲例: 首先在出現此錯誤(java.lang.IllegalArgumentException: expecting IdClass mapping)時 將user2.hbm.xml中的mapped="true" class="com.llr.po.User2PK"去掉 <composite-id mapped="true" class="com.llr.po.User2PK">
相關文章
相關標籤/搜索