注释类型 NaturalIdCache


  • @Target(TYPE)
    @Retention(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.
    作者:
    Eric Dalquist, Steve Ebersole
    另请参阅:
    NaturalId
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      String region
      The cache region name.
    • 元素详细资料

      • region

        String region
        The cache region name. null or empty-string (the default) are interpreted as {entity-name}##NaturalId
        默认值:
        ""