[jOOQ/jOOQ#10309] Add code generation support for arrays of domain types
This commit is contained in:
parent
79d60d0700
commit
8d9281da47
@ -7189,6 +7189,8 @@ public class JavaGenerator extends AbstractGenerator {
|
||||
// [#4388] TODO: Improve array handling
|
||||
Name baseType = GenerationUtil.getArrayBaseType(db.getDialect(), t, u);
|
||||
|
||||
// [#10309] TODO: The schema should be taken from baseType, if available. Might be different than the argument schema.
|
||||
// When can this happen?
|
||||
if (scala)
|
||||
type = "scala.Array[" + getType(db, schema, baseType.last(), p, s, baseType, javaType, defaultType, udtMode) + "]";
|
||||
else if (kotlin)
|
||||
@ -7218,6 +7220,11 @@ public class JavaGenerator extends AbstractGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
// Check for DOMAIN types
|
||||
else if (db.getDomain(schema, u) != null) {
|
||||
type = getJavaType(db.getDomain(schema, u).getDefinedType());
|
||||
}
|
||||
|
||||
// Check for ENUM types
|
||||
else if (db.getEnum(schema, u) != null) {
|
||||
type = getStrategy().getFullJavaClassName(db.getEnum(schema, u), Mode.ENUM);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user