I need to implement a web app that will be used by different users. Each user has different privileges on various tables, e.g.
# User A is allowed to insert, update and read address table
# User B is not allowed to insert or update address table, but is allowed to read address table.
Please tell me what to setup in Hibernate, so that when user A attempts to do an update, the database knows it is user A that is trying to do the update and when user B attempts to do an update, the database knows it is user B that is trying to do the update.
How can I go about setting up more than one user any way?
Thanks.
|