Re: Snapshot problems SOLVED, FOR REAL, NO JOKE
Re: Snapshot problems SOLVED, FOR REAL, NO JOKE
- Subject: Re: Snapshot problems SOLVED, FOR REAL, NO JOKE
- From: Lachlan Deck <email@hidden>
- Date: Mon, 23 Apr 2007 08:24:36 +1000
Hi Steven,
On 23/04/2007, at 5:27 AM, Steven Mark McCraw wrote:
The problem? NESTING THE EDITING CONTEXT. I'm not kidding. It
was a matter of changing
ERXEC.newEditingContext(session.defaultEditingContext())
to
ERXEC.newEditingContext();
While you're there, have a go at:
public class Session ... {
EOEditingContext _defaultEc;
public Session() {
}
public EOEditingContext defaultEditingContext() {
if ( _defaultEc == null )
_defaultEc = ERXEC.newEditingContext();
return _defaultEc;
}
public EOEditingContext getNestedEc() {
return ERXEC.newEditingContext(defaultEditingContext());
}
}
with regards,
--
Lachlan Deck
_______________________________________________
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