Click to See Complete Forum and Search --> : problem: xdoclet/hibernate defining relations FK for composite-keys


dr_pompeii
03-09-2007, 12:14 PM
h guys

i need your help

i have this already created
i work with xdoclet


<set
name="detalles"
lazy="true"
inverse="true"
cascade="none"
sort="unsorted"
>

<key>
<column name="idnumero" />
<column name="tipoAlmacen" />
</key>

<one-to-many
class="com.manolo.test.DetalleAlmacen"
/>

</set>

the bold part was added manually, i cant find the way with xdoclet create the bold part



/**
* @hibernate.set inverse="true" lazy="true"
* @MyNotes <key> <column name="idnumero" /> <column name="tipoAlmacen" /> </key>
* @hibernate.collection-one-to-many class="com.manolo.test.DetalleAlmacen"
*
*/
public Set getDetalles() {
return detalles;
}

pls if some member can help with this, let me know

thanks for advanced