Uploaded image for project: 'Hibernate ORM'
  1. HHH-6781

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

    Details

      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.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: