cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From inovation <carlosraimund...@gmail.com>
Subject Re: Transaction Fails - when saving interdependent entities.
Date Mon, 11 Jun 2012 11:49:11 GMT
hi!

I have a similar question.

Even if I´m using the Cayenne´s Transaction class, I have to commit object´s
context during the operation? I mean... I have related objects and I want to
set a field in second object which is the ID of the first one ... And I´m
getting a nullpointer exception... I´ve already tried to commitContext()
before the first Insert on DB, but unfortunately with no success . 

Can you help me please?

Thks in advance!



--
View this message in context: http://cayenne.195.n3.nabble.com/Transaction-Fails-when-saving-interdependent-entities-tp4024215p4024255.html
Sent from the Cayenne - User mailing list archive at Nabble.com.

Mime
View raw message