hibernate-orm
hibernate-orm copied to clipboard
HHH-19565 @SQLRestriction should not be applied to a @ManyToOne
Reverts to the behavior prior to H6.2, where @Where a.k.a. @SQLRestriction did not affect @OneToMany association fetching.
This change continues to add the restriction when:
- the
@OneToManyis mapped to a@JoinTable, or - when it's the unowned end of a
@OneToOnemapped to a FK.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion. For more information on licensing, please check here.
https://hibernate.atlassian.net/browse/HHH-19565
@sebersole Im not proposing to merge this as-is.