menu
more_vert
hibernate 联合主键

作者:dayu

?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping package="com.bxw.entity"> <class name="Student"> <composite-id name="pk" class="com.bxw.entity.StudentPk"> <key-property name="id"></key-property> <key-property name="name"></key-property> </composite-id> <property name="sex"></property> </class> </hibernate-mapping>

hibernate 联合主键

原文地址:http://www.cnblogs.com/popcornya/p/7248069.html