|
This is by intent and thus not a bug.
We don´t think this is a good application of filters. Use an Interceptor instead, if you wish to add security to single-valued results.
This means that I would need to add security twice.
Once as a filter for queries and afterwards as interceptors for load/save/update it's much better if you can do it once in filter performace of load/save/update will not change if you add a restriction. Database will query on ID in any case. And with interceptors I would need to retrieve the object from database just to check security. If you it's not cleare I can give you an example of our application. Added a request (
|
||||||||||||||||||||||||||||||||||||||||||
I would like to use filters of Hibernate 3.0 for some kind of security limitation of subset. For "queries" they work perfect but using load(...) user can still get an object which normally he should not see