If you set those restrictions on the queried entities you are definitely right, the quried entities should be filtered accordingly and not the relations.

But if i filter the relations i actually want them to be filtered (for good reasons). Fetching the relations afterwards is not an acceptable solution as it triggers extra queries. Please take a look at my forum post describing a "real life" problem:
https://forum.hibernate.org/viewtopic.php?f=1&t=1022948

This fix currently prevents us from updating to hibernate 3.6.4 or any newer version.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira