Executing a native query via the entityManager always does a flush()

Ok. If ypu can replicate it with this test case template, then it’s a Hibernate bug.

If you can only replicate it with JBoss, then it’s an integration issue and need to be reported to JBoss issue tracker.