Annotation Interface HasEntityTypeConstant


@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
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
    Class<? extends jakarta.validation.Payload>[]
     
    Returns the name of a public static constant of type EntityType in the annotated class.
  • Element Details

    • value

      String value
      Returns the name of a public static constant of type EntityType in 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:
      {}