Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
is it possible to evict cascade a cleared collection?
posted 8 years ago
i have an Order object which has child Collections of Order lines with all-delete-orpah as cascade.
say i have update one of the lines object with data.
then i decide to clear the colection for some buisness reasons.
then i would like to "rollback" all my changes by doing an evict on root object (order)
so far what i've seen is that evict works on all changes EXCEPCT the update on one child objects.
it would seem that becouse i cleared the collection evict won't casacade it the object that were in it (i know it sounds silly but i thought hibnerate maintains some reference in it's own collections.
is what i'm trying possible? or do i have to clear the entire session?
Don't get me started about those stupid
Boost this thread!
2nd Level cache eviction not cascading
Testing persistence or method?
Cleared SCJP 5 with 98% - experiences