Find out if entity has dirty collections #2749
Unanswered
marjohansson
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using an event listener based on IFlushEntityEventListener to find out if an entity has any dirty collections.
Have tried using the code below but this does not work in all scenarios and I also would like to know if the mapping is inversed or not.
The collection is mapped with cascade. I first create and persist an object. Then loads it and add a child to the entity collection.
I do not get any dirtyprops using the code below. Does anyone have a suggestion on how to do this?
Beta Was this translation helpful? Give feedback.
All reactions