Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.hibernate.annotations
Annotation Type NaturalIdCache

    @Target(value=TYPE)
    @Retention(value=RUNTIME)
    public @interface NaturalIdCache

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.

See Also:
  `NaturalId`

Optional Element Summary
`String` | `region` The cache region name.

### region

    public abstract String region

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

  Default:
    ""

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.