You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The idea I had that if a second parameter is provided namely in then 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 the out entity they'd be the same values.
So for someone to work around that in may have a transient variable containing the older values which will be dropped off the out parameter. Then they can do some manipulations.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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
in
then 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 theout
entity they'd be the same values.So for someone to work around that
in
may have atransient
variable containing the older values which will be dropped off theout
parameter. Then they can do some manipulations.Anyway just a random idea.
Beta Was this translation helpful? Give feedback.
All reactions