[jOOQ/jOOQ#17787] Regression when enabling <jpaAnnotation> for NOT NULL

DEFAULT columns, which should continue to be marked as @Column(nullable
= true)
This commit is contained in:
Lukas Eder 2024-12-23 10:11:57 +01:00
parent 02e997e01f
commit 84df2232c8

View File

@ -10105,7 +10105,7 @@ public class JavaGenerator extends AbstractGenerator {
}
String nullable = "";
if (effectivelyNotNull(out, column))
if (!column.getType(resolver(out)).isNullable())
nullable = ", nullable = false";
String length = "";