org.hibernate.annotations
Annotation Type Cache


@Target(value={TYPE,METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface Cache

Add caching strategy to a root entity or a collection

Author:
Emmanuel Bernard

Required Element Summary
 CacheConcurrencyStrategy usage
          concurrency strategy chosen
 
Optional Element Summary
 java.lang.String include
          whether or not lazy-properties are included in the second level cache default all, other value: non-lazy
 java.lang.String region
          cache region name
 

Element Detail

usage

public abstract CacheConcurrencyStrategy usage
concurrency strategy chosen

region

public abstract java.lang.String region
cache region name

Default:
""

include

public abstract java.lang.String include
whether or not lazy-properties are included in the second level cache default all, other value: non-lazy

Default:
"all"