hello,
I have a (probably) basic problem regarding evicting objects with Hibernate 3.1.
I have the following mapping
Code:
<class name="generated.GeSectionGroup" table="GE_SECTION_GROUP" lazy="false">
<set name="geSections" lazy="true" inverse="true" cascade="all">
<key>
<column name="GESG_ID" />
</key>
<one-to-many class="generated.GeSection"/>
</set>
</class>
when I do
Code:
GeSectionGroup gsg = GeOutage.getGeSectionGroup();
session.evict(gsg);
I can see that my 'gsg' is evicted, but the elements of the geSections set is not evicted. Shouldn't cascade=all take care of this for me?
The reason I am doing this, is that I'm running into the NonUniqueObjectException when trying to save and I would like to evict the objects before saving...
Any help would be appreciated
cheers,
Kenny