Re: how can i insert rows into database through new editingcontext

Tim Kliewer <[email protected]>
Newsgroups gmane.comp.web.webobjects.newbies
Message-ID <[email protected]>
Every EO property that is another EO must be in the SAME EOEditingContext.
You can create the appropriate object(s) by using
EOUtilities.localInstanceOfObject(...)

If this fails you may want to wrap your ec.saveChanges() in a try/catch block
and print the Exceptions stack trace to examine and report back...

TNK

--- brahma the legend <[email protected]> wrote:

> Hi all,
>    i have one serious problem with EOEditingcontext.What i am doing is
> created an enterpriseobject and call insertObject() methos with new
> EditingContext object , not the default editing context.Now when i tried to
> save ,It gives IllegalStateException.
> Is there any modification to be done prior to save an object through a new
> EditingContext??
>  
> Any suggestion on this Problem is welcome.
>  
> 
> 
> Brahmaji Kande
> eVergent Technologies.
> Hyderabad.
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h2jo8pv/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123191468/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/">In low income neighborhoods, 84% do not own computers. At Network for Good, help bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/webobjects-newbies/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.