Package org.hibernate.annotations
Annotation Type Check
-
@Target({TYPE,METHOD,FIELD}) @Retention(RUNTIME) public @interface Check
Specifies acheck
constraint to be included in the generated DDL.- When a field or property is annotated, the check constraint is added to the column definition.
- When an entity class is annotated, the check constraint is added to the primary table.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description String
constraints
The check constraint, written in native SQL.
-
-
-
Element Detail
-
constraints
String constraints
The check constraint, written in native SQL.
-
-