[#6567] Support using org.jooq.impl.EnumConverter as a <converter> configuration

This commit is contained in:
lukaseder 2017-09-07 18:59:23 +02:00
parent 8b1008130f
commit c4c5a1581d

View File

@ -155,7 +155,10 @@ abstract class AbstractTypedElementDefinition<T extends Definition>
? customType.getType()
: customType.getName();
if (Boolean.TRUE.equals(customType.isEnumConverter())) {
// [#5877] [#6567] EnumConverters profit from simplified configuration
if (Boolean.TRUE.equals(customType.isEnumConverter()) ||
EnumConverter.class.getName().equals(customType.getConverter())) {
String tType = DefaultDataType
.getDataType(db.getDialect(), definedType.getType(), definedType.getPrecision(), definedType.getScale())
.getType()