Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: Id.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.FIELD;
6
import static java.lang.annotation.ElementType.METHOD;
7
import java.lang.annotation.Retention;
8
import static java.lang.annotation.RetentionPolicy.RUNTIME;
9
import java.lang.annotation.Target;
10
 
11
 
12
/**
13
 * Specifies the primary key property or field of an entity.
14
 *
15
 * @author Emmanuel Bernard
16
 */
17
@Target({METHOD, FIELD}) @Retention(RUNTIME)
18
public @interface Id {}