Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic