List<EnumType> enumTypes = new ArrayList<EnumType>();
for (String property : properties.stringPropertyNames()) {
if (property.startsWith("generator.database.enum-type.")) {
String name = property.replace("generator.database.enum-type.", "");
EnumType type = new EnumType();
type.setName(name);
type.setLiterals(properties.getProperty(property));
enumTypes.add(type);
}
}
List<ForcedType> forcedTypes = new ArrayList<ForcedType>();
for (String property : properties.stringPropertyNames()) {
if (property.startsWith("generator.database.forced-type.")) {
String name = property.replace("generator.database.forced-type.", "");
ForcedType type = new ForcedType();
type.setName(name);
type.setExpressions(properties.getProperty(property));
forcedTypes.add(type);
}
}
org.jooq.util.jaxb.Database database = new org.jooq.util.jaxb.Database();