Hibernate version: 3.2.0
Hi Guys
Is it possible to configure an interceptor ( or something similar ) to append a where clause to all dynamically generated queries? I have a flag in every table which I need to add to the clause, but I don't want it to live in the object model at all.
ie when calling the load method hibernate generates a query to load the data from the DB, and I wan't to dynamically append "and recordset = 1" to the sql before it is executed.
Is this possable in the current API
thanks
Mark
|