• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB - JPA - schemas

Kasse Gunnar
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">
<property name="openjpa.jdbc.Schemas" value="LIBRARY1,LIBRARY1"/>

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.

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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!