HHH-10017 - Bytecode enhancer - consistent handling of persistent attributes (field / property access)
This commit is contained in:
parent
cff4cb4b7a
commit
266ec761f4
|
@ -45,8 +45,12 @@ public class EnhancedSetterMethodImpl implements Setter {
|
|||
// for enhanced attribute, don't flag as dirty
|
||||
if ( target instanceof SelfDirtinessTracker ) {
|
||||
( (SelfDirtinessTracker) target ).$$_hibernate_suspendDirtyTracking( true );
|
||||
setterMethod.invoke( target, value );
|
||||
( (SelfDirtinessTracker) target ).$$_hibernate_suspendDirtyTracking( false );
|
||||
try {
|
||||
setterMethod.invoke( target, value );
|
||||
}
|
||||
finally {
|
||||
( (SelfDirtinessTracker) target ).$$_hibernate_suspendDirtyTracking( false );
|
||||
}
|
||||
}
|
||||
else {
|
||||
setterMethod.invoke( target, value );
|
||||
|
|
Loading…
Reference in New Issue