KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Table.java,v 1.1 2005/07/26 04:57:08 epbernard Exp $
2
package org.hibernate.annotations;
3
4 import java.lang.annotation.Retention JavaDoc;
5 import java.lang.annotation.Target JavaDoc;
6 import static java.lang.annotation.ElementType.TYPE JavaDoc;
7 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
8
9 /**
10  * Complementary information to a table either primary or secondary
11  *
12  * @author Emmanuel Bernard
13  */

14 @Target JavaDoc({TYPE}) @Retention JavaDoc(RUNTIME)
15 public @interface Table {
16     /**
17      * name of the targeted table
18      */

19     String JavaDoc name();
20
21     /**
22      * Indexes
23      */

24     Index[] indexes() default {};
25
26 }
27
Popular Tags