12 lines
315 B
Java
12 lines
315 B
Java
//: annotations/database/Constraints.java
|
|
package annotations.database;
|
|
import java.lang.annotation.*;
|
|
|
|
@Target(ElementType.FIELD)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface Constraints {
|
|
boolean primaryKey() default false;
|
|
boolean allowNull() default true;
|
|
boolean unique() default false;
|
|
} ///:~
|