| Sébastien Tardif That's no longer an issue since 5.2 if you use the JPA bootstrap, meaning you are using:
- Java EE
- Spring or Spring Boot with JpaTransactionManager (the vast majority of deployments)
So, unless you are bootstrapping with the native API (e.g. Spring or Spring Boot with HibernateTransactionManager), then the Session will be flushed prior to any query. |