I'm working at the moment on a new project which has following requirement:
Several database schemas are holding the same tables with identical structure (in short: one entity for multiple schemas).
Is it possible to switch between those schemas by code? Want I want to achieve is:
User selects schema B and updates some entities in this. After this he does a insert in schema A and so on. I know that I could do this by basic JDBC by providing the schema to the statements but if I can avoid that I would do so.
Maybe some other java ORM can do this? I'm only familiar with JPA / Hibernate.
Regards