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
Try following:
puplic class MyClass { public static final String S1D="S1D"; public static final String S2D="S2D"; } @Entity @Table(name = "TABLE1", schema=MyClass.S1D) ... @Entity @Table(name = "TABLE2", schema=MyClass.S2D) ...