Annotation Interface EnumValueProvider.BaseEnum

Enclosing class:
EnumValueProvider

@Target(FIELD) @Retention(RUNTIME) public static @interface EnumValueProvider.BaseEnum
Used when a JPA entity enum field is mapped to a DataResponseDTO field which type is not enum. Necessary to define the type of field by which filtering will be performed.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Enum<?>>
     
  • Element Details

    • value

      Class<? extends Enum<?>> value
      Returns:
      Class of the corresponding enum field in JPA entity.