hibernate 多对多关系详解(包括中间表,一对多字表)
2012-05-25 11:13:59 来源:WEB开发网核心提示: // Getter and Setter methods } *** PERSON XML **<hibernate-mapping> <class name="events.Person" table="PERSON"> <!--class.na
// Getter and Setter methods
}
******************* PERSON XML ******************
<hibernate-mapping>
<class name="events.Person" table="PERSON"> <!-- class.name指向类class.table指向表-->
<id name="id" column="PERSON_ID"> <!-- id.id指向属性 id.column指向字段-->
更多精彩
赞助商链接