I have two entities EntityA and EntityB
EntityA - > TableA (updatable)
EntityB -> TableB (readonly)
Association Table- > TABLEAB (AB_UID,A_UID,B_UID) (updatable)
Whine I do saveOrUpdate(EntityA) after setting the EntityA property of Set of EntityB's it does not update the TABLEAB.
Is it some thing wrong with the mapping.
Mapping documents:
<hibernate-mapping>
<class name="EntityA" table="TableA">
<id name="aUid" column="a_uid" type="java.lang.Long">
<generator class="native"/>
</id>
<property name="aName" column="A_NAME" type="java.lang.String"
length="50"/>
<!--collections-->
<set name="bees" table="TABLEAB" cascade="all">
<key column="A_UID"/>
<many-to-many column="B_UID"
class="EntityB" cascade="none"/>
</set>
</class>
</hibernate-mapping>
Hibernate version:3.05
Name and version of the database you are using:HSQLDB 1.7.1
_________________ RT
|