I have an object of class Group whose mapping (simplified) looks like this:
<class name="Group" identity="id">
<map-to table="GROUPS" />
<field name="id" set-method="setId" get-method="getId">
<sql name="GROUP_ID" />
</field>
<field name="members" type="UserGroupAssociation"
collection="collection" lazy="true">
<sql many-table="GROUP_USERS" many-key="GROUP_ID"/>
</field>
</class>
When I remove entries from the members collection, the corresponding rows in
the GROUP_USERS table are not deleted. Is there something wrong with my
mapping? I suspect that it might have something to do with the lazy-loaded
collection, but I'm not sure. Can anyone shed some light on this?
--Kevin
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev