Hi Kevin,

thank you VERY much for your answers. I tested your second proposal for
solution and it works like a charm! But one drawback here: we lose
portability because as you said the annotation is OpenJPA specific.

Could some OpenJPA official please update the FAQ
(http://openjpa.apache.org/faq.html) "Can OpenJPA reorder SQL statements to
satisfy database foreign key constraints?" Maybe the @ForeignKey solution
would be helpful for other desperate developers as well... 

--
View this message in context: 
http://openjpa.208410.n2.nabble.com/Constraint-violation-using-OneToOne-relationship-tp6978223p6981835.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to