Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: JoinColumns.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 java.lang.annotation.Retention;
6
import java.lang.annotation.Target;
7
 
8
import static java.lang.annotation.ElementType.*;
9
import static java.lang.annotation.RetentionPolicy.*;
10
 
11
/**
12
 * Defines mapping for the composite foreign keys.
13
 * This annotation groups JoinColumn annotations for the same relationship.
14
 *
15
 * When the JoinColumns annotation is used, both the name and the referencedColumnName
16
 * elements must be specified in each such JoinColumn annotation.
17
 
18
 * @author Emmanuel Bernard
19
 */
20
@Target({METHOD, FIELD}) @Retention(RUNTIME)
21
public @interface JoinColumns {
22
    JoinColumn[] value();
23
}