Annotation Type EnumByOrdinal


@Retention(RUNTIME) @Target({FIELD,METHOD,PARAMETER,TYPE}) public @interface EnumByOrdinal
Specifies that an Enum value should be bound or mapped as its Enum.ordinal(). This annotation can be placed on the source enum (class), in SqlStatement.bindByType(String, Object, org.jdbi.v3.core.qualifier.QualifiedType) calls, or on SqlObject methods and parameters. The order of priority, highest to lowest, is
  • binding/mapping point (fluent API or SqlObject)
  • class annotation
  • Enums config
See Also: