KickJava   Java API By Example, From Geeks To Geeks.

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


1 // $Id$
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  * Sets the related class to not be mapped to a table. A class with this
12  * annotation can be used to hold data from a query, but cannot be used to be
13  * inserted, updated or deleted, or read by primary keys.
14  */

15 @Retention JavaDoc(RetentionPolicy.RUNTIME)
16 @Target JavaDoc(ElementType.TYPE)
17 public @interface NoTable {
18
19 }
20
Popular Tags