-
@Target(TYPE) @Retention(RUNTIME) public @interface CacheableSpecifies whether an entity should be cached, if caching is enabled, and when the value of thepersistence.xmlcaching element isSharedCacheMode.ENABLE_SELECTIVEorSharedCacheMode.DISABLE_SELECTIVE.The value of the
Cacheableannotation is inherited by subclasses; it can be overridden by specifyingCacheableon a subclass.Cacheable(false)means that the entity and its state must not be cached by the provider.- Since:
- 2.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanvalue(Optional) Whether or not the entity should be cached.
-