Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: Proxy.java 11282 2007-03-14 22:05:59Z epbernard $
2
package org.hibernate.annotations;
3
 
4
import static java.lang.annotation.ElementType.TYPE;
5
import java.lang.annotation.Retention;
6
import static java.lang.annotation.RetentionPolicy.RUNTIME;
7
import java.lang.annotation.Target;
8
 
9
/**
10
 * Lazy and proxy configuration of a particular class
11
 *
12
 * @author Emmanuel Bernard
13
 */
14
@Target(TYPE)
15
@Retention(RUNTIME)
16
public @interface Proxy {
17
        /**
18
         * Whether this class is lazy or not (default to true)
19
         */
20
        boolean lazy() default true;
21
 
22
        /**
23
         * Proxy class or interface used. Default entity class name.
24
         */
25
        Class proxyClass() default void.class;
26
}