Hello,
I have a simple many-to-many mapping defined and the query seems to work fine but the setters for the setChild(Collection col) is getting an empty collection.
Tables are :
Parent , Parent_child_link, Child.
Config files for Parent
Code:
<class mutable="false" name="Parent" table="Parent" >
<property name="name" column="NAME" type="string" length="55" not-null="true"/>
<property name="description" column="DESCRIPTION" type="string" length="255"/>
....
...
..
<set name="child" inverse="false" table="parent_child_link" outer-join="false">
<key column="parent_id" />
<many-to-many class="child" column="child_id"/>
</set>
...
..
I have debug statements in the child and the object is getting created, it is not being added to the collection.
Does anybody know what the issue is.