| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(MappedClass mappedClass,
MappedField mappedField,
Object value,
List<ValidationFailure> validationFailures)
Checks the class of the
value against the type of the ID for the type. |
static EntityTypeAndIdValueValidator |
getInstance()
Get the instance.
|
public boolean apply(MappedClass mappedClass, MappedField mappedField, Object value, List<ValidationFailure> validationFailures)
value against the type of the ID for the type. Always applies this validation,
but there's room to change this to not apply it if, for example, the type is not an entity.mappedClass - mappedField - value - the value for the queryvalidationFailures - the list to add any failures to. If validation passes or appliesTo returned false, this list will
not change. @return true if the validation was applied.public static EntityTypeAndIdValueValidator getInstance()