mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-08 04:08:19 +00:00
HHH-13959 Add nullability and uniqueness for @OneToOne with @JoinTable
This commit is contained in:
parent
5c92d515c6
commit
27b065c574
@ -3113,7 +3113,14 @@ else if (hasSpecjManyToOne) {
|
||||
propertyBinder.setCascade( cascadeStrategy );
|
||||
propertyBinder.setProperty( property );
|
||||
propertyBinder.setXToMany( true );
|
||||
propertyBinder.makePropertyAndBind();
|
||||
|
||||
final Property boundProperty = propertyBinder.makePropertyAndBind();
|
||||
if ( joinColumn != null ) {
|
||||
boundProperty.setOptional( joinColumn.nullable() && optional );
|
||||
}
|
||||
else {
|
||||
boundProperty.setOptional( optional );
|
||||
}
|
||||
}
|
||||
|
||||
protected static void defineFetchingStrategy(ToOne toOne, XProperty property) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user