We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eaa85c commit a4e40a5Copy full SHA for a4e40a5
orm/src/main/java/org/hibernate/tool/internal/export/java/BasicPOJOClass.java
@@ -817,7 +817,7 @@ protected boolean isRequiredInConstructor(Property field) {
817
return false;
818
}
819
if(field.getValue()!=null) {
820
- if (!field.isOptional() && (field.getValueGeneratorCreator() == null )) {
+ if (!(field.isOptional() || field.getValue().isNullable()) && (field.getValueGeneratorCreator() == null )) {
821
return true;
822
} else if (field.getValue() instanceof Component) {
823
Component c = (Component) field.getValue();
0 commit comments