KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > annotations > Check


1 //$Id: Check.java,v 1.2 2005/05/16 10:37:28 epbernard Exp $
2
package org.hibernate.annotations;
3
4 import static java.lang.annotation.ElementType.TYPE JavaDoc;
5 import static java.lang.annotation.ElementType.METHOD JavaDoc;
6 import static java.lang.annotation.ElementType.FIELD JavaDoc;
7 import static java.lang.annotation.RetentionPolicy.RUNTIME JavaDoc;
8 import java.lang.annotation.Target JavaDoc;
9 import java.lang.annotation.Retention JavaDoc;
10
11 /**
12  * Arbitrary SQL check constraints which can be defined at the class,
13  * property or collection level
14  * @author Emmanuel Bernard
15  */

16 @Target JavaDoc({TYPE, METHOD, FIELD}) @Retention JavaDoc(RUNTIME)
17 public @interface Check {
18     String JavaDoc constraints();
19 }
20
Popular Tags