We're updating the issue view to help you get more done. 

Class level @Where annotation is not enforced on collections of that class

Description

The documentation appears to suggest that @Where annotations on entities affect everywhere that class is loaded:

http://docs.jboss.org/hibernate/core/3.3/reference/en/html/mapping.html#mapping-declaration-class

> where (optional): specifies an arbitrary SQL WHERE condition to be used when retrieving objects of this class.

I have found that this SQL fragment is not automatically applied to collections of entities. The documentation should clarify this.

Environment

None

Status

Assignee

Unassigned

Reporter

Richard Bradley

Suitable for new contributors

Yes, likely

Components

Fix versions

Priority

Minor