Until 5.4.4 we could set "org.hibernate.flushMode" in persistence.xml and it was applied to every created Session. That does not work anymore since 5.4.5. See attached test case.