I currently work in a project where each user has his own schema in Oracle 11g DB. This design was done because all the security roles and privileges to access the Oracle tables are stored in the DB. Our team is trying to figure how to do this in the cool Play! framework. Any suggestions?
Share
As far as I understand, you can try wrap a value of
DB.datasourcewith something like this (wherecurrentUser()andcurrentPassword()should return the credentials of the current user who makes a request):Replacement of
DB.datasourceshould happen between execution ofonApplicationStart()methods of DB and JPA plugins, so that you need to create a custom plugin:and register in with the appropriate priority level in
conf/play.plugins: