Nov 27th, 2011, 11:08 AM
Rowlevel security Spring + Hibernate + Jboss
I came up with a question that I can't seem to find on the internet.
I'm developping a program in spring that uses 1 database for all the users.
Atm I'm trying to seperate data from different users on a way that I don't need to pay attention to it on DAO level..
Basicly, every query that i run on dao level needs to have to apply automatically some filter like " where user.userId == books.ownerId".
I saw some Hibernate filter examples which isn't an option cause the hibernatemappings and pojo are created by an external program which doesn't allow us to add any filtering options in that way.
Does anyone know a way of doing this on the most effecient manner?
Dec 2nd, 2011, 08:57 AM
Isn't there anyone who ever came accross this problem?