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 ;5 import static java.lang.annotation.ElementType.METHOD ;6 import static java.lang.annotation.ElementType.FIELD ;7 import static java.lang.annotation.RetentionPolicy.RUNTIME ;8 import java.lang.annotation.Target ;9 import java.lang.annotation.Retention ;10 11 /**12 * Arbitrary SQL check constraints which can be defined at the class,13 * property or collection level14 * @author Emmanuel Bernard15 */16 @Target ({TYPE, METHOD, FIELD}) @Retention (RUNTIME)17 public @interface Check {18 String constraints();19 }20