Annotation Type NaturalIdCache

  • @Target(TYPE)
    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:
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String region
      The cache region name.
    • Element Detail

      • region

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