hibernate 多对多关系详解(包括中间表,一对多字表)
2012-05-25 11:13:59 来源:WEB开发网核心提示:<key column="EVENT_ID"/><many-to-many column="PERSON_ID" class="events.Person"/></set> </class> </hiber
<key column="EVENT_ID"/>
<many-to-many column="PERSON_ID" class="events.Person"/>
</set>
</class>
</hibernate-mapping>
******************* HIBERNATE CFG XML ******************
<session-factory>
<!-- Database connection settings -->
更多精彩
赞助商链接