KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: TypeDef.java,v 1.3 2005/05/05 09:49:04 epbernard Exp $
2
package org.hibernate.annotations;
3
4 import java.lang.annotation.Retention JavaDoc;
5 import java.lang.annotation.Target JavaDoc;
6
7 import static java.lang.annotation.ElementType.TYPE JavaDoc;
8 import static java.lang.annotation.ElementType.PACKAGE JavaDoc;
9 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
10
11 /**
12  * Type definition
13  *
14  * @author Emmanuel Bernard
15  */

16 @Target JavaDoc({TYPE,PACKAGE}) @Retention JavaDoc(RUNTIME)
17 public @interface TypeDef {
18     String JavaDoc name();
19     Class JavaDoc typeClass();
20     Parameter[] parameters() default {};
21 }
22
Popular Tags