KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > persist > annotations > Table


1 // $Id: Table.java 12 2007-08-29 05:23:13Z jcamaia $
2

3 package net.sf.persist.annotations;
4
5 import java.lang.annotation.ElementType JavaDoc;
6 import java.lang.annotation.Retention JavaDoc;
7 import java.lang.annotation.RetentionPolicy JavaDoc;
8 import java.lang.annotation.Target JavaDoc;
9
10 /**
11  * Defines a table mapping for a given class.
12  */

13 @Retention JavaDoc(RetentionPolicy.RUNTIME)
14 @Target JavaDoc(ElementType.TYPE)
15 public @interface Table {
16
17     /**
18      * Name of the table mapped to the class.
19      */

20     String JavaDoc name();
21
22 }
23
Popular Tags