Hibernate使用复合主键时需要注意的

来源:互联网 发布:门面模式 java 编辑:程序博客网 时间:2024/06/02 02:47

Hibernate使用复合主键时必须实现java.io.serializable接口。

复合主键配置:

<composite-id>
<key-property  name=""  column=""  type=""/>
<key-property  name=""  column=""  type=""/>

...
</composite-id>

1 0
原创粉丝点击