Annotation Type Cache


  • @Target({TYPE,METHOD,FIELD})
    @Retention(RUNTIME)
    public @interface Cache
    Add caching strategy to a root entity or a collection.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      CacheConcurrencyStrategy usage
      The concurrency strategy chosen.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String include
      How lazy properties are included in the second level cache.
      java.lang.String region
      The cache region name.
      • region

        java.lang.String region
        The cache region name.
        Default:
        ""
      • include

        java.lang.String include
        How lazy properties are included in the second level cache. Default value is "all"; other allowable value: "non-lazy"
        Default:
        "all"