Annotation Interface PersonHasName
@Documented
@Constraint(validatedBy=PersonHasNameValidator.class)
@Target(TYPE)
@Retention(RUNTIME)
public @interface PersonHasName
A person is required to have either a first or last name.
One or the other can be null but not both.
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional Elements