Hi all, I allow myself to respond on my own thread, as I have a lead for one of the problems :
" Also, in the A->C relation I have a problem (the C class seems thus the problem) : - first I create a A->null entity, then do an update with A->C. The statements look fine, but the last Update of A with the new cId is not done on the table. " When I look at the sql statements, the problem is with versioning. I dont know why, but in this case I have : - Update A to increment the version number (!!!) - Insert C - Update A with the C id but with the older version in "where" statement So this is the explanation why the third statement (the update) does nothing. When I do the same with the relation A->B, everything works fine. The order is the following : - Insert of B - Update of A to set the B id and the version Why is the version updated separately in the first case ? Thank you! imho -- View this message in context: http://openjpa.208410.n2.nabble.com/problem-with-foreign-key-ensure-order-of-Sql-statements-tp5347045p5354056.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
