[jOOQ/jOOQ#5210] Fix compilation error in generated code

Package UDTs generated wrong UDTNames objects, see [jOOQ/jOOQ#10576]
This commit is contained in:
Lukas Eder 2023-08-31 11:05:11 +02:00
parent edb132c0d9
commit e1adf258a1

View File

@ -8390,7 +8390,7 @@ public class JavaGenerator extends AbstractGenerator {
else if (objectType == UDTDefinition.class)
return s.getDatabase().getUDTs(s);
return s.getDatabase().getUDTs(s).stream().filter(u -> u.getPackage() == null).collect(toList());
else if (objectType == UniqueKeyDefinition.class)
return s.getDatabase().getKeys(s);
}
@ -8407,6 +8407,14 @@ public class JavaGenerator extends AbstractGenerator {
return u.getAttributes();
}
log.info("No child objects of type " + objectType.getName() + " for container : " + container + " (" + container.getClass().getName() + ")"); return new ArrayList<>();
}