Package org.hibernate.annotations
Annotation Type NaturalIdCache
-
@Target(TYPE) @Retention(RUNTIME) public @interface NaturalIdCache
Specifies that the natural id values associated with the annotated entity should be cached in the shared second-level cache.- See Also:
NaturalId
-
-
Element Detail
-
region
String region
Specifies an explicit cache region name.By default, the region name is
EntityName##NaturalId
.- Default:
- ""
-
-