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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    whether or not lazy-properties are included in the second level cache default all, other value: non-lazy
    cache region name
  • Element Details

    • usage

      concurrency strategy chosen
    • region

      String region
      cache region name
      Default:
      ""
    • include

      String include
      whether or not lazy-properties are included in the second level cache default all, other value: non-lazy
      Default:
      "all"