Joined: Thu Jan 18, 2007 11:28 am Posts: 5
|
I have two objects. Both objects have composite pk. <class name="parent" table="t_parent"> <composite-id> <key-property name="effDt" type="date" column="EFF_DT"> </key-property> <key-property name="group" type="int" column="GROUP"></key-property> </composite-id> <many-to-one name="group" class="GroupTable" cascade="none" outer-join="auto" > <column name="EFF_DT" /> <column name="GP_ID"/> </many-to-one> </class> <class name="GroupTable" table="t_group"> <composite-id> <key-property name="effDt" type="date" column="EFF_DT"> </key-property> <key-property name="group" type="int" column="GRP_ID"></key-property> </composite-id>
<property name="lastUpdateDate" type="java.util.Date" column="LST_UPDT" /> </class>
When I try to start my server, I get this error: Repeated column in mapping for entity EFF_DT (should be mapped with insert="false" update="false"). But when I add insert="false" update="false" it complained that insert and update is not in the dtd for < key-property> and <column>
Can someone please help?
Thanks
|
|