[jOOQ/jOOQ#10877] Compilation error in ScalaGenerator generated code

when table has column CLASS
This commit is contained in:
Lukas Eder 2020-11-06 11:01:30 +01:00
parent 62ac3886a3
commit c7f8c8e044

View File

@ -2330,7 +2330,7 @@ public class JavaGenerator extends AbstractGenerator {
boolean override = generateInterfaces();
if (scala) {
out.println("def %s: %s = get(%s).asInstanceOf[%s]", getter, type, index, type);
out.println("def %s(): %s = get(%s).asInstanceOf[%s]", getter, type, index, type);
}
else if (kotlin) {
String nullable = column instanceof EmbeddableDefinition ? "" : "?";