When HHH-12875 caused this regression. It specifically affects collections mapped using hbm.xml using {{where="..."}} for collections of basic, embeddable, or "any" elements.
Before HHH-12875 was fixed, {{org.hibernate.mapping.Collection#setWhere}} was called for all the different types of elements (although, it was not correct for one-to-many associations).
After HHH-12875 was fixed, {{org.hibernate.mapping.Collection#setWhere}} was only called for one-to-many and many-to-many associations. As a result, the "where" mapping is ignored for basic, embeddable, and "any" elements. |
|