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
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String region
      Specifies an explicit cache region name.
    • Element Detail

      • region

        String region
        Specifies an explicit cache region name.

        By default, the region name is EntityName##NaturalId.

        Default:
        ""