KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.hibernate.annotations;
2
3 import java.lang.annotation.Retention JavaDoc;
4 import java.lang.annotation.Target JavaDoc;
5 import static java.lang.annotation.ElementType.TYPE JavaDoc;
6 import static java.lang.annotation.ElementType.FIELD JavaDoc;
7 import static java.lang.annotation.ElementType.METHOD JavaDoc;
8 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
9
10 /**
11  * Define a DB index
12  * @author Emmanuel Bernard
13  */

14 @Target JavaDoc({TYPE, FIELD, METHOD}) @Retention JavaDoc(RUNTIME)
15 public @interface Index {
16     String JavaDoc name();
17     String JavaDoc[] columnNames() default {};
18 }
19
Popular Tags