Skip to content

Commit

Permalink
[jOOQ#5242] Fixed regression in Scala generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Jul 4, 2016
1 parent 595ac08 commit d12aad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jOOQ-codegen/src/main/java/org/jooq/util/JavaGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -3343,7 +3343,7 @@ else if (generateInstanceFields()) {

if (scala) {
out.tab(1).javadoc("Rename this table");
out.tab(1).println("def rename(name : %s) : %s = {", String.class, className);
out.tab(1).println("override def rename(name : %s) : %s = {", String.class, className);

if (table.isTableValuedFunction())
out.tab(2).println("new %s(name, null, parameters)", className);
Expand All @@ -3356,6 +3356,7 @@ else if (generateInstanceFields()) {
// [#2921] With instance fields, tables can be renamed.
else if (generateInstanceFields()) {
out.tab(1).javadoc("Rename this table");
out.override();
out.tab(1).println("public %s rename(%s name) {", className, String.class);

if (table.isTableValuedFunction())
Expand Down

0 comments on commit d12aad0

Please sign in to comment.