title: JPA not flushes before native query with FlushModeType.AUTO
body: <p>In our project we use hibernate 5.0.12 and Spring data Jpa.I found that jpa does not invoke flush before native query.But in JPA specification i read that with FlushModeType.AUTO flush() invokes before every query(JPQL or native SQL).i guess its problem in hibernate an hibernates version.Could someone clarify this problem?We have a lot of problem with this issue.</p>