2nd level cache invalidation with native queries
问题 I have an application that uses 2nd level cache on a JBoss AS 7 installation (Infinispan 2nd level cache provider). We have some update JPQL Queries that invalidate the cache- I wonder what will be the effect if we include some native SQL queries in our application. Will the Query cache be invalidated ? Also I remember using the sqlQuery.addSynchronizedQuerySpace("") instruction on Hibernate to prevent cache invalidation for some native SQL queries. Is it possible to do it also with JPA ?