Hi
I have the following mappings:
Code:
Offer.hbm.xml:
<array name="ansatte" table="OFFERT_PERSON_BA" cascade="all">
<key column="OFFERT_ID" not-null="true" />
<index column="OFFERT_INDEX"/>
<many-to-many column="PERSON_ID" class="AnsattDO"/>
</array>
Person.hbm.xml
<array name="offerter" table="OFFERT_PERSON_BA" cascade="all">
<key column="PERSON_ID" not-null="true"/>
<index column="PERSON_INDEX"/>
<many-to-many column="OFFERT_ID" class="OffertDO" />
</array>
I have tried with and without not-null="true" for the keys.
When I use saveOrUpdate Hibernate inserts at both ends of the many-to-many but the join-table (OFFERT_PERSON_BA) is not updated with the relationship info. Any ideas?