Please provide a test case that reproduces your issue. Please see org.hibernate.test.flush.TestAutoFlushBeforeQueryExecution for an example of a unit test with a custom PreUpdateEventListener.