Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: Cache.java 11282 2007-03-14 22:05:59Z epbernard $
2
package org.hibernate.annotations;
3
 
4
import static java.lang.annotation.ElementType.*;
5
import java.lang.annotation.Retention;
6
import static java.lang.annotation.RetentionPolicy.RUNTIME;
7
import java.lang.annotation.Target;
8
 
9
/**
10
 * Add caching strategy to a root entity or a collection
11
 *
12
 * @author Emmanuel Bernard
13
 */
14
@Target({TYPE, METHOD, FIELD})
15
@Retention(RUNTIME)
16
public @interface Cache {
17
        /** concurrency strategy chosen */
18
        CacheConcurrencyStrategy usage();
19
        /** cache region name */
20
        String region() default "";
21
        /**
22
         * whether or not lazy-properties are included in the second level cache
23
         * default all, other value: non-lazy
24
         */
25
        String include() default "all";
26
}