@Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) @Constraint(checkWith=UniqueCheck.class) public @interface Unique
GenericModel
.
Message key: validation.unique
$1: field name
$2: properties which define a context in which the column must be uniqueGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly