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

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.3.0.Final

Priority

Major