Register / Login
Object Relational Mapping
is it possible to evict cascade a cleared collection?
posted 7 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?
2nd Level cache eviction not cascading
Testing persistence or method?
Cleared SCJP 5 with 98% - experiences