We're updating the issue view to help you get more done. 

Improve DefaultFlushEntityEventListener#invokeInterceptor method execution

Description

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 boolean isDirty = false; if ( entry.getStatus() != Status.DELETED ) { if ( callbackRegistry.preUpdate( entity ) ) { isDirty = copyState( entity, persister.getPropertyTypes(), values, session.getFactory() ); } } final boolean answerFromInterceptor = session.getInterceptor().onFlushDirty( entity, entry.getId(), values, entry.getLoadedState(), persister.getPropertyNames(), persister.getPropertyTypes() ); return answerFromInterceptor || isDirty;

when isDirty == true the answerFromInterceptor check can be avoided

Environment

None

Status

Assignee

Andrea Boriero

Reporter

Andrea Boriero

Components

Fix versions

Affects versions

5.3.0.Final

Priority

Major