openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radhika <radhikagopin...@yahoo.com>
Subject Multiple updates within same transaction
Date Mon, 21 Sep 2009 21:13:50 GMT

Hi, 

I have 2 entities - Parent and Child , created without using the embedded
relationship between them, since in most cases I want to manage them
separately.


However, in some cases I want to do the following

transaction.begin();
addParent();
addChild();
transaction.commit();

However I get a referential key contraint when in addChild, since the add to
the parent is not committed. My requirement is commit both or rollback both
updates.

Thanks
Rads


-- 
View this message in context: http://n2.nabble.com/Multiple-updates-within-same-transaction-tp3688437p3688437.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Mime
View raw message