Hibernate / Hibernate Caching
Explain shared cache mode in second level cache of Hibernate.
To configure shared cache mode, hibernate provides javax.persistence.sharedCache.mode and it allows four values.
- ENABLE_SELECTIVE: Entities will not be cached until entity will be annotated by cacheable.
- DISABLE_SELECTIVE : Those entities are cached which are explicitly not annotated with cacheable.
- ALL : Every entities will be cached.
- NONE: No entity will be cached.
More Related questions...