KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > annotations > Proxy


1 //$Id: Proxy.java,v 1.1 2005/02/18 07:29:19 epbernard Exp $
2
package org.hibernate.annotations;
3
4 import static java.lang.annotation.ElementType.TYPE JavaDoc;
5
6 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
7
8 import java.lang.annotation.Target JavaDoc;
9 import java.lang.annotation.Retention JavaDoc;
10
11 /**
12  * Lazy and proxy configuration of a particular class
13  *
14  * @author Emmanuel Bernard
15  */

16 @Target JavaDoc(TYPE) @Retention JavaDoc(RUNTIME)
17 public @interface Proxy {
18     /**
19      * Whether this class is lazy or not (default to true)
20      */

21     boolean lazy() default true;
22
23     /**
24      * Proxy class or interface used. Default entity class name.
25      */

26     String JavaDoc proxyClassName() default "";
27 }
28
Popular Tags