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