Replies: 2 comments 6 replies
|
Upvoted |
0 replies
|
My knee-jerk is that this is really a lot harder than it sounds, and has nontrivial implications for performance. For example, what is the expectation for associations? Note that Hibernate offers something like this via the |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am pretty sure this can't be done easily because we only have references and can't simply just "copy" the previous value first for @PreUpdate and @postupdate
That is saying something like
The idea I had that if a second parameter is provided namely
inthen it's the object that was about to be updated but detached. The thing is if it was still pointing to the same values as theoutentity they'd be the same values.So for someone to work around that
inmay have atransientvariable containing the older values which will be dropped off theoutparameter. Then they can do some manipulations.Anyway just a random idea.
All reactions