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