Hi folks,
All the tables in my database have a visibility flag so that queries will only retrieve objects that are not hidden. I'm successfully using Hibernate Filters at class level and collection level as per the example in the reference documentation.
My problem is that I can't see any way to apply the same filter to a nested object that is declared by a many-to-one element in the mapping file. I hope I'm not just being blind, any help is greatly appreciated.
Kevin
Hibernate version:
3.1.3
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
|