Local query caches are not populated if the transaction is not committed.
The same test case works on hibernate 4.3.11
Our scenario: Read-only services that only execute queries and never commit the transaction. It should still be possible to use/configure hibernate/infinispan to cache the results, regardless the transaction state.
The test case:
Test case is attached: MyApp3
Test case class: com.myapp.NonTransactionalQueryCacheTest
JPA/Hibernate + Spring + JTA + Infinispan