[jOOQ/jOOQ#15850] Accidental override when enabling <interfaces> for

tables with columns X and IS_X in Kotlin
This commit is contained in:
Lukas Eder 2023-11-20 16:04:58 +01:00
parent 7a8b2b8391
commit 4bbc9b6463

View File

@ -3236,7 +3236,7 @@ public class JavaGenerator extends AbstractGenerator {
printValidationAnnotation(out, column);
printNullableOrNonnullAnnotation(out, column);
if (kotlin)
if (kotlin && !generateImmutableInterfaces())
printKotlinSetterAnnotation(out, column, Mode.INTERFACE);
if (scala)
@ -9195,7 +9195,9 @@ public class JavaGenerator extends AbstractGenerator {
if (kotlin
&& generateKotlinSetterJvmNameAnnotationsOnIsPrefix()
&& column instanceof ColumnDefinition
&& P_IS.matcher(getStrategy().getJavaMemberName(column, mode)).matches()) {
// TODO: The Mode should be INTERFACE
&& P_IS.matcher(getStrategy().getJavaMemberName(column, Mode.POJO)).matches()) {
// [#12440] And if we have interfaces, we'll run into https://youtrack.jetbrains.com/issue/KT-31420
// [#13467] Since jOOQ 3.17, all these properties are open, so this applies everywhere