Hibernate version: 2.1.6
Relation to map:
JOB_EQUIPMENT.JOB_REFERENCE = JOB_DETAILS.JOB_REFERENCE
JOB_EQUIPMENT.DTL_SEQUENCE = JOB_DETAILS.DTL_SEQUENCE
Try
in jobequipment.hbm.xml :
<many-to-one name="jobdetail" class="JobDetail" update="false" insert="false" >
<column name="DTL_SEQUENCE" property_ref="dtlSeq" />
<column name="JOB_REFERENCE" property_ref="jobRef" />
</one-to-many>
???
in jobdetails.hbm.xml
<bag name="equipments" lazy="true" inverse="true" cascade="true">
<key column="JOB_REFERENCE"/>
<key column="DTL_SEQUENCE"/>
<one-to-many class="JobEquipment"/>
</bag>
?????
Help
I am trying to model with hibernate the relation but I don't manage...
Any help would be greatly appreciated.
Thanks in advance for your help.
Jeangui
jean_gui at yahoo dot fr