OpenJPA can order the SQL statements to satisfy the foreign key constraints.
However, you must tell OpenJPA about the existing foreign keys; otherwise,
by default, it does neither read physical foreign key information from the
database, nor creates foreign key constrainst while defining schema for new
tables.

The information on how to tell OpenJPA about foreign keys is available in
FAQ [1]

[1] http://openjpa.apache.org/faq.html

-- 
View this message in context: 
http://n2.nabble.com/OpenJPA-persists-children-before-parent%21-tp668432p668724.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to