I found the solution for my problem, maybe intrested for other people!

Why OpenJPA is not creating foreign key constraints on the database tables?

By default, OpenJPA does not create foreign key constraints on new tables
that gets created according to O-R mapping annotation/descriptors. You can
change this default behavior via following configuration property

 
<property name="openjpa.jdbc.MappingDefaults"
value="ForeignKeyDeleteAction=restrict,
JoinForeignKeyDeleteAction=restrict"/>


Greets K,


Daryl Stultz wrote:
> 
> On Thu, Oct 15, 2009 at 8:50 AM, yokenji <[email protected]> wrote:
> 
>>
>> Nothing,
>>
>> :(
>>
>> Sorry, I'm afraid I don't know. I use the command line call rather than
>> Ant
> because the Ant task in 1.2.1 is broken when enums are used. You might try
> it from the command line.
> 
> -- 
> Daryl Stultz
> _____________________________________
> 6 Degrees Software and Consulting, Inc.
> http://www.6degrees.com
> mailto:[email protected]
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Set-ForeignKey-tp3828908p3829831.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to