Top Description Methods
org.hibernate.annotations

public @Interface NaturalIdCache

extends Annotation
Annotations
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

Used to specify that the natural id values associated with the annotated entity should be cached in Hibernate's shared (L2) cache. Can optionally name a custom cache region.
Authors
Eric Dalquist, Steve Ebersole
See Also
NaturalId

Method Summary

Modifier and TypeMethod and Description
public String
region()

The cache region name.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

regionback to summary
public String region()

The cache region name. null or empty-string (the default) are interpreted as {entity-name}##NaturalId