Hi all.
Does anyone know a way or found a way of implementing read/search permissions on hibernate. At the moment I have a system of protecting the database against unauthorised update(), save(), delete() by implementing Lifecycle and using the functions there.
But I can't find a way of doing the same for find() and get(). I can implement my own checking for get() as I know the type of the object I am retrieving but for a find() where I'm doing
Code:
select x.y, x.z from MyTable x
I could parse the HQL query but ideally I'd like hibernate to call back somehow after it parses the query with a list of objects/tables that will be accessed by the query. Presumably hibernate does have this information at some point during the execute of find(). Is there anyway of getting this data out, so I can run my security check?
Cheers.
Myk.