@SuppressWarnings({"rawtypes", "unchecked"})
    @Override
    public Optional<ColumnMapper<?>> build(Type type, ConfigRegistry config) {
        Class<?> clazz = getErasedType(type);
        return Enum.class.isAssignableFrom(clazz)
                ? Optional.of(EnumMapper.byOrdinal(clazz.asSubclass(Enum.class)))
                : Optional.empty();
    }
Produces enum column mappers, which map enums from numeric columns according to ordinal value.

@see Enums#setEnumStrategy(EnumStrategy)
@see EnumByName
@see EnumByOrdinal
@see EnumMapper#byOrdinal(Class)
@deprecated Use {@link Enums#setEnumStrategy(EnumStrategy) getConfig(Enums.class).setEnumStrategy(BY_ORDINAL)} instead.
core/src/main/java/org/jdbi/v3/core/mapper/EnumByOrdinalMapperFactory.java