Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Foreign keys not created, Oracle

graffer

2008-07-02

Replies: Find Java Web Hosting

Author LoginPost Reply

Hello,

We are currently evaluating OpenJPA. We have a lot of OneToMany and
ManyToOne relations.

relevant part of persistence.xml:
<property name="openjpa.Log" value="DefaultLevel=WARN, Runtime=INFO,
Tool=INFO"/>
<property name="openjpa.jdbc.DBDictionary" value="oracle(batchLimit=-1)"/>
<property name="openjpa.jdbc.SynchronizeMappings"
value="buildSchema(ForeignKeys=true)"/>

When creating the tables on startup, no foreign keys are created.
Using the SchemaBuilder also does not work.

org.apache.openjpa.jdbc.meta.MappingTool -action buildSchema -foreignKeys
true -sql d:/temp/create.sql

creates a script without any foreign keys. Database used is Oracle 10g. Can
anyone help with that issue?

Thanks!

Georg

--
Sent from the OpenJPA Users mailing list archive at Nabble.com.

©2008 gg3721.com - Jax Systems, LLC, U.S.A.