Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: Check.java 11282 2007-03-14 22:05:59Z epbernard $
2
package org.hibernate.annotations;
3
 
4
import static java.lang.annotation.ElementType.*;
5
import java.lang.annotation.Retention;
6
import static java.lang.annotation.RetentionPolicy.RUNTIME;
7
import java.lang.annotation.Target;
8
 
9
/**
10
 * Arbitrary SQL check constraints which can be defined at the class,
11
 * property or collection level
12
 *
13
 * @author Emmanuel Bernard
14
 */
15
@Target({TYPE, METHOD, FIELD})
16
@Retention(RUNTIME)
17
public @interface Check {
18
        String constraints();
19
}