I\'m having a bit of trouble with one particular issue using JPA/Spring:
How can I dynamically assign a schema to an entity?
We have TABLE1 that belongs to s
I had the same problem I solved that with a persistence.xml in which I refer to the needed orm.xml files within I declared the db shema
. . .
ormOne.xml
. . .
. . .
ormTwo.xml
. . .
now you can create a EntityManagerFactory for your special schema
EntityManagerFactory emf = Persistence.createEntityManagerFactory("schemaOne");