KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Type.java,v 1.2 2005/04/06 23:41:11 epbernard Exp $
2
package org.hibernate.annotations;
3
4 import static java.lang.annotation.ElementType.FIELD JavaDoc;
5 import static java.lang.annotation.ElementType.METHOD JavaDoc;
6
7 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
8
9 import java.lang.annotation.Target JavaDoc;
10 import java.lang.annotation.Retention JavaDoc;
11
12 /**
13  * hibernate type
14  * @author Emmanuel Bernard
15  */

16 @Target JavaDoc({FIELD,METHOD}) @Retention JavaDoc(RUNTIME)
17 public @interface Type {
18     String JavaDoc type();
19     Parameter[] parameters() default {};
20 }
Popular Tags