我有一个表中有两个字段作业联合主键,生成XML如下
<composite-id >
<key-property name="groupId" type="string">
<column name="GroupID" length="30" />
</key-property>
<key-property name="modeltypeId" type="integer">
<column name="modeltype_id" />
</key-property>
</composite-id>
我现在想让这两个字段作为外键跟别的表进行关联应该怎么 写
<composite-id >
<key-property name="groupId" type="string">
<column name="GroupID" length="30" />
</key-property>
<key-property name="modeltypeId" type="integer">
<column name="modeltype_id" />
</key-property>
</composite-id>
我现在想让这两个字段作为外键跟别的表进行关联应该怎么 写
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货