Jakarta Persistence (JPA) Method

TypedQuery<X> setCacheStoreMode(
  CacheStoreMode cacheStoreMode
)


Set the cache storage mode that is in effect during query execution. This cache storage mode overrides the cache storage mode in use by the entity manager.
Parameters:
cacheStoreMode - cache storage mode
Returns:
the same query instance.
Since:
Jakarta Persistence (JPA) 3.2