[jOOQ/jOOQ#9864] Generate additional record constructor
It is useful to have an additional record constructor that does not include the readonly columns. Further improvements to code generation might follow.
This commit is contained in:
parent
9971ff8e96
commit
2aa166f846
@ -41,6 +41,7 @@ package org.jooq.codegen;
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.stream.Collectors.counting;
|
||||
import static java.util.stream.Collectors.groupingBy;
|
||||
import static java.util.stream.Collectors.toList;
|
||||
// ...
|
||||
// ...
|
||||
import static org.jooq.SQLDialect.MYSQL;
|
||||
@ -1914,6 +1915,15 @@ public class JavaGenerator extends AbstractGenerator {
|
||||
// [#3176] Avoid generating constructors for tables with more than 255 columns (Java's method argument limit)
|
||||
generateRecordConstructor(tableUdtOrEmbeddable, out, replacingEmbeddablesAndUnreplacedColumns, false);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (!replacingEmbeddablesAndUnreplacedColumns.equals(embeddablesOrColumns))
|
||||
generateRecordConstructor(tableUdtOrEmbeddable, out, embeddablesOrColumns, false);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user