[hibernate-dev] Does make sense for unidirectional association?

2018-10-29 Thread Gail Badner
The fix for HHH-12436 involves correcting the foreign key direction for some one-to-one assocations. In the process of making changes I see that we have a unit test that has a unidirectional one-to-one association mapped with constrained="false". [1] ModelBinder assumes that means that the foreig

Re: [hibernate-dev] Does make sense for unidirectional association?

2018-10-29 Thread Gail Badner
If does make sense for a unidirectional association, and the foreign key really should be FROM_PARENT, then, AFAICT, the only way the unit tests could pass is if Hibernate assumes such associations would have an implicit ignoreNotFound="true". As an example, take a look at OptionalOneToOneTest [1