Re: [hibernate-dev] *-to-one associations and @NotFound

2018-10-05 Thread Gail Badner
I thought of another case that hasn't been discussed fully. It's covered in the section, Possible Anomalies - @NotFound(EXCEPTION) has no effect in some cases - Non-Optional Associations. Guillaume and Stephen, please take a look and let me know your thoughts. Thanks, Gail On Fri, Oct 5, 2018 at

Re: [hibernate-dev] *-to-one associations and @NotFound

2018-10-05 Thread Gail Badner
After discussions with Stephen Fikes and Guillaume, I've added resolutions to the document. In a nutshell, here is what we decided. 1) Ccombination of @NotFound(IGNORE) and non-optional one-to-one/many-to-one will throw MappingException. 2) Combination of @NotFound(IGNORE) and "mappedBy" one-to-

[hibernate-dev] *-to-one associations and @NotFound

2018-09-24 Thread Gail Badner
As a result of fixing HHH-12436 , some eager *-to-one associations that were loaded using FetchMode.JOIN may instead be loaded using FetchMode.SELECT, and vice-versa. In some cases, @NotFound behavior is different depending on the FetchMode for the