File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -385,15 +385,15 @@ private boolean finishInitialization(
385
385
length = column .getLength ();
386
386
precision = column .getPrecision ();
387
387
scale = column .getScale ();
388
- nullable = column .isNullable ();
388
+ nullable = bootPropertyDescriptor . isOptional () && column .isNullable () ;
389
389
selectablePath = basicValue .createSelectablePath ( column .getQuotedName ( dialect ) );
390
390
}
391
391
else {
392
392
columnDefinition = null ;
393
393
length = null ;
394
394
precision = null ;
395
395
scale = null ;
396
- nullable = true ;
396
+ nullable = bootPropertyDescriptor . isOptional () ;
397
397
selectablePath = basicValue .createSelectablePath ( bootPropertyDescriptor .getName () );
398
398
}
399
399
attributeMapping = MappingModelCreationHelper .buildBasicAttributeMapping (
You can’t perform that action at this time.
0 commit comments