Added the fix to EJB3FlushEntityEventListener in 4.2 and created a pull request https://github.com/hibernate/hibernate-orm/pull/925.