HHH-11591 - Nullable check should not be skipped for OneToOne annotated with @NotFound(action = NotFoundAction.IGNORE)

This commit is contained in:
Andrea Boriero 2017-03-24 15:02:36 +00:00
parent 7a10764d2b
commit 1ce9e24b26
1 changed files with 0 additions and 3 deletions

View File

@ -103,9 +103,6 @@ public class OneToOneSecondPass implements SecondPass {
binder.setCascade( cascadeStrategy );
binder.setAccessType( inferredData.getDefaultAccess() );
Property prop = binder.makeProperty();
if ( ignoreNotFound ) {
prop.setOptional( true );
}
if ( BinderHelper.isEmptyAnnotationValue( mappedBy ) ) {
/*
* we need to check if the columns are in the right order