* </p>
*/
public ScalarType<?> createEnumScalarType(Class<?> enumType) {
// get the mapping information from EnumMapping
EnumMapping enumMapping = (EnumMapping) enumType.getAnnotation(EnumMapping.class);
if (enumMapping == null) {
// look for EnumValue annotations instead
return createEnumScalarType2(enumType);
}
String nameValuePairs = enumMapping.nameValuePairs();
boolean integerType = enumMapping.integerType();
int dbColumnLength = enumMapping.length();
Map<String, String> nameValueMap = StringHelper.delimitedToMap(nameValuePairs, ",", "=");
return createEnumScalarType(enumType, nameValueMap, integerType, dbColumnLength);
}