We are using MyBatis 3.0.3 & Spring 3.0.5 in our project.
We are trying to implement data level security through a table which stores where clauses (userid < 200, active == true, ...).
So, the problem comes when we want to add a clause to a select query dinamically in execution time.
We are thinking about the possibility of using Spring AOP but we are not sure if it is possible or not, if it is a good solution and appart from that we don't know how to implement it.
Please share your thoughts.
Thanks in advance,