hibernate符合主键

当有符合主键时,一方与多方的复合主键顺序必须一致:

<set>

  <key>

    <column name="A" />

    <column name="B" />

  <key>

  <one-to-many class="" />

</set>

 

<many-to-one name="" class="">

  <column name="A" />

  <column name="B" />

<many-to-one/>

posted @ 2016-05-28 16:19  李永  阅读(152)  评论(0编辑  收藏  举报