Top Description Methods
org.hibernate.annotations

public @Interface Cache

extends Annotation
Known Direct Implementers
org.hibernate.cfg.annotations.EntityBinder.LocalCacheAnnotationStub
Annotations
@Target:TYPE, METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

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

Method Summary

Modifier and TypeMethod and Description
public String
include()

How lazy properties are included in the second level cache.

public String
region()

The cache region name.

public CacheConcurrencyStrategy
usage()

The concurrency strategy chosen.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

includeback to summary
public String include()

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

regionback to summary
public String region()

The cache region name.

usageback to summary
public CacheConcurrencyStrategy usage()

The concurrency strategy chosen.