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 e7b4889 commit 9a5827eCopy full SHA for 9a5827e
main/src/main/java/org/hibernate/tool/hbm2x/pojo/BasicPOJOClass.java
@@ -825,7 +825,9 @@ protected boolean isRequiredInConstructor(Property field) {
825
return false;
826
}
827
if(field.getValue()!=null) {
828
- if (!field.isOptional() && (field.getValueGenerationStrategy() == null || field.getValueGenerationStrategy().getGenerationTiming().equals(GenerationTiming.NEVER))) {
+ if (!(field.isOptional() || field.getValue().isNullable()) &&
829
+ (field.getValueGenerationStrategy() == null ||
830
+ field.getValueGenerationStrategy().getGenerationTiming().equals(GenerationTiming.NEVER))) {
831
return true;
832
} else if (field.getValue() instanceof Component) {
833
Component c = (Component) field.getValue();
0 commit comments