Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
33 | PointedEar | 1 | //$Id: Entity.java 11282 2007-03-14 22:05:59Z epbernard $ |
2 | //EJB3 Specification Copyright 2004-2006 Sun Microsystems, Inc. |
||
3 | package javax.persistence; |
||
4 | |||
5 | import static java.lang.annotation.ElementType.TYPE; |
||
6 | import java.lang.annotation.Retention; |
||
7 | import static java.lang.annotation.RetentionPolicy.RUNTIME; |
||
8 | import java.lang.annotation.Target; |
||
9 | |||
10 | /** |
||
11 | * Specifies that the class is an entity. This annotation is applied to the entity class. |
||
12 | * |
||
13 | * @author Emmanuel Bernard |
||
14 | */ |
||
15 | @Target(TYPE) @Retention(RUNTIME) |
||
16 | public @interface Entity { |
||
17 | /** |
||
18 | * The name of an entity. Defaults to the unqualified name of the entity class. |
||
19 | * This name is used to refer to the entity in queries. The name must not be a |
||
20 | * reserved literal in the Java Persistence query language. |
||
21 | */ |
||
22 | String name() default ""; |
||
23 | } |