[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6781) Class level @Where annotation is not enforced on collections of that class

Richard Bradley (JIRA) noreply at atlassian.com
Thu Oct 27 16:03:21 EDT 2011


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

                 Key: HHH-6781
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6781
             Project: Hibernate Core
          Issue Type: Bug
          Components: core, documentation
            Reporter: Richard Bradley
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list