0 Replies Latest reply on May 14, 2007 10:32 AM by Magnus Sandberg

    How to I cancel a FlushModeType.MANUAL Conversation?

    Magnus Sandberg Novice

      Is it possible to cancel/evict changes made to the current em when @End'ing a nested Conversation?

      Typically I have two methods save() and cancel() on my nested Conversation-Components on save I do em.flush() but on cancel() I need to "rollback" any changes.

      Currently I loop through all entities and do em.refresh() on them but this seems a awkward - is there any better way to do this?