Java

JPA Cache APIs

Posted on

JPA 2.0 Cache APIs JPA 2.0 provides a set of standard query hints to allow refreshing or bypassing the cache. The query hints are defined on the two enum classes CacheRetrieveMode and CacheStoreMode. Query hints: javax.persistence.cache.retrieveMode¬†: CacheRetrieveMode BYPASS¬†: Ignore the cache, and build the object directly from the database result. USE¬†: Allow the query to […]