Bug reports should generally be accompanied by a test case!
fixed this issue for annotations, but not for hbm.xml mappings.
This fix is specifically for hbm.xml mappings.
Where clause for collections of basic, embeddable and "any" elements is ignored when mapped using hbm.xml
Class level @Where annotation is not enforced on collections of that class