@Documented
@Target(TYPE)
@Inherited
@Retention(RUNTIME)
@Constraint(validatedBy=HasEntityTypeConstantValidator.class)
public @interface HasEntityTypeConstant
A class that has a public static constant of type
EntityType.
The expected default name of the constant is TYPE.-
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueReturns the name of a public static constant of typeEntityTypein the annotated class.- Returns:
- Name of the public static constant.
- Default:
- "TYPE"
-
message
String message- Default:
- "Does not define a public static constant with the given name"
-
groups
Class<?>[] groups- Default:
- {}
-
payload
Class<? extends jakarta.validation.Payload>[] payload- Default:
- {}
-