hibernate 多对多关系详解(包括中间表,一对多字表)
2012-05-25 11:13:59 来源:WEB开发网核心提示:<mapping resource="events/Event.hbm.xml"/><mapping resource="events/Person.hbm.xml"/> </session-factory> 测试类 **publicclas
<mapping resource="events/Event.hbm.xml"/>
<mapping resource="events/Person.hbm.xml"/>
</session-factory>
******************** 测试类 ******************
publicclass EventManager {
publicstaticvoid main(String[] args) {
EventManager mgr = new EventManager();
更多精彩
赞助商链接