net.simonvt.schematic.annotation.Constraints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of schematic-annotations Show documentation
Show all versions of schematic-annotations Show documentation
Automatically generate ContentProviders
The newest version!
package net.simonvt.schematic.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Specify a list of {@link UniqueConstraint} that should be applied on the table level
*/
@Retention(RetentionPolicy.SOURCE) @Target(ElementType.TYPE)
public @interface Constraints {
/** list of unique constraints */
UniqueConstraint[] unique() default {};
/** list of check constraints */
Check[] check() default {};
/** list of foreign key constraints */
ForeignKeyConstraint[] foreignKey() default {};
}