Joined: Tue Aug 30, 2005 1:48 pm Posts: 15
|
I have a table BORD_DESC with only two fields : BORD_DESC and CODE_EXP (wich is a foreign key from DOCU15 table). I have a composed primary key (CODE_EXP,BORD_DESC). How can i declare may composed-id in my mapping file ???
Please help me.
<composite-id> <key-property name="bordDesc" column="BORD_DESC" type="java.lang.String" length="20" /> </composite-id>
<!-- Associations --> <!-- end of derived association(s) --> <!-- bi-directional many-to-one association to Docu15 --> <many-to-one name="Docu15" class="com.persistence.pojos.Docu15" not-null="true" > <column name="CODE_EXP" /> </many-to-one>
|
|