Top Description Methods
org.hibernate.annotations

public @Interface Cache

extends Annotation
Known Direct Implementers
org.hibernate.cfg.AnnotationBinder.LocalCacheAnnotationImpl
Annotations
@Target:TYPE, METHOD, FIELD
@Retention:RUNTIME
Static Imports
java.lang.annotation.ElementType.*, .RetentionPolicy.RUNTIME

Add caching strategy to a root entity or a collection
Author
Emmanuel Bernard

Method Summary

Modifier and TypeMethod and Description
public String
include()

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

public String
region()

cache region name

public CacheConcurrencyStrategy
usage()

concurrency strategy chosen

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

includeback to summary
public String include()

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

regionback to summary
public String region()

cache region name

usageback to summary
public CacheConcurrencyStrategy usage()

concurrency strategy chosen