Try something similar with Slice, where the database is same, but two slices
use different schema.

     <property name="openjpa.slice.Names" value="one,two"/>
      <property name="openjpa.slice.one.jdbc.Schema" value="one"/>
      <property name="openjpa.slice.one.ConnectionURL"
value="jdbc:mysql://localhost:3306/test"/>
      <property name="openjpa.slice.one.jdbc.Schema" value="two"/>
      <property name="openjpa.slice.two.ConnectionURL"
value="jdbc:mysql://localhost:3306/test"/>

where you store the new objects are determined by slice.DistributionPolicy.
Hence, it is possible to store related objects in separate slices.


-----
Pinaki Poddar
Chair, Apache OpenJPA Project
--
View this message in context: 
http://openjpa.208410.n2.nabble.com/Problems-when-using-openjpa-MetaDataFactory-Property-tp6671704p6696082.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to