diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/OneToOneSecondPass.java b/hibernate-core/src/main/java/org/hibernate/cfg/OneToOneSecondPass.java index 459b036e46..c3d64ae86c 100644 --- a/hibernate-core/src/main/java/org/hibernate/cfg/OneToOneSecondPass.java +++ b/hibernate-core/src/main/java/org/hibernate/cfg/OneToOneSecondPass.java @@ -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