• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB - JPA - schemas

 
Kasse Gunnar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our system looks something like this:

LIBRARY1 : custumer
LIBRARY2 : customer

in persistence.xml:
<persistence-unit name="test1">
<properties>
<property name="openjpa.jdbc.Schemas" value="LIBRARY1,LIBRARY1"/>
...
</properties>
</persistence-unit>

what i'm looking for is some kind of solution where
LIBRARY2.customer is used if LIBRARY1 does not exist.
With the persistence.xml above, an exception gets thrown if LIBRARY.customer does not exist.

Anyone?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!