• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

is it possible to evict cascade a cleared collection?

 
Elhanan Maayan
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..

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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic