I want to create a project with one database but I want to have some tables with data and duplicated that to another/more schemas so I will have in every schema different and separated data according to something (ex. Location).

I am using Ebean with play and java and I created the tables models but I want the sql query will work with the right schema according to a session’s value.

So the question is how can I change while runtime the Ebean schema so the query will work properly.

    Your Answer

     

    By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

    Browse other questions tagged or ask your own question.