[EMAIL PROTECTED] wrote:

I get the following exception during an update.



The class I want to update has a link to another object.



org.exolab.castor.jdo.TransactionAbortedException: Nested error: org.exolab.castor.jdo.PersistenceException: Object, <Object>, links to another object, <Object> that is not loaded/updated/created in this transaction



If I'm loading the link object and make an update, too, it works. Is there another way to avoid this error?



I also tried setAutostore and the lazy attribute.

Markus,

It appears that for whatever reason, the autostore is not reaching the relation to the object that's failing update. Have you tried to make a call to db.update() for this object as well?

Also, please post the relevant portion of your object mapping descriptor as well as the relevant portion of the client code.

Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\\"F9E<G)E=\\$\\!F<FEI+F-O;0\\`\\`");'


The Castor Project
http://www.castor.org/

Apache Geronimo
http://incubator.apache.org/projects/geronimo.html



----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev

Reply via email to