9 lines
210 B
Java
9 lines
210 B
Java
|
//: annotations/database/Uniqueness.java
|
||
|
// Sample of nested annotations
|
||
|
package annotations.database;
|
||
|
|
||
|
public @interface Uniqueness {
|
||
|
Constraints constraints()
|
||
|
default @Constraints(unique=true);
|
||
|
} ///:~
|