Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: UniqueConstraint.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 static java.lang.annotation.RetentionPolicy.RUNTIME;
7
import java.lang.annotation.Target;
8
 
9
/**
10
 * This annotation is used to specify that a unique constraint is to be included in the generated DDL
11
 * for a primary or secondary table
12
 *
13
 * @author Emmanuel Bernard
14
 */
15
@Target({}) @Retention(RUNTIME)
16
public @interface UniqueConstraint {
17
        /**
18
         * An array of the column names that make up the constraint
19
         */
20
        String[] columnNames();
21
}