Re: Cant reenter deployed application after an uncaught exception.
Re: Cant reenter deployed application after an uncaught exception.
- Subject: Re: Cant reenter deployed application after an uncaught exception.
- From: Markus Ruggiero <email@hidden>
- Date: Tue, 27 Jun 2006 14:13:29 +0200
On 26.06.2006, at 18:19, Zac Konopa wrote: After the data has been validated I lock the editing context, instantiate my record, assign the values from my instance variables, insert the object into the ec, and when appropriate I save the changes to the ec.
This troubles me. Is this the exact sequence? Then you will end up in trouble eventually - and your problems may be because of this. Never ever modify your EO's variables before the EO is inserted into an editing context. You may want to use the follwing EOUtilities method createAndInsertInstance(EOEditingContext ec, String entityName).
Good luck and have fun ---markus---
Markus Ruggiero rucotec consulting and technologies email mailto:email@hidden rucotec GmbH web http://www.rucotec.ch Steinentorstrasse 8 4051 Basel Mobile +41 (0)79 508 4701 Switzerland Phone/Fax +41 (0)61 271 4990 |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden