@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Constraint(validatedBy=CompositeUniqueCheckValidator.class) public @interface CompositeUnique
| Modifier and Type | Required Element and Description |
|---|---|
String[] |
fields
Fields to be used to check composite unique check
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
checkForNull
Add null field value with IS NULL check or = NULL, useful when composite check required with NULL can be accepted
|
boolean |
enableDfltMsg
To override default validation message or not
|
Class<?>[] |
groups |
String |
id
Entity id field name
|
boolean |
isSuperclass
Fields to be done based current entity's super class or not
|
String |
message
Message to be displayed
|
Class<? extends javax.validation.Payload>[] |
payload |
public abstract String[] fields
public abstract String id
public abstract String message
public abstract boolean enableDfltMsg
public abstract boolean isSuperclass
public abstract boolean checkForNull
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.