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. Run with “mvn clean test”, prints:
Works if version in pom is changed to 5.4.4