Update error
Update error
- Subject: Update error
- From: Tarun Reddy <email@hidden>
- Date: Sun, 15 Jul 2007 16:39:19 -0600
I have code where I updated a value based upon user input. The first time I update the value, it correctly updates, however if I attempt to update it again through a second web form submit, I get the following error:
Application: WOIdeas Error: com.webobjects.eoaccess.EOGeneralAdaptorException: updateValuesInRowDescribedByQualifier -- com.webobjects.jdbcadaptor.JDBCChannel method failed to update row in database Reason: updateValuesInRowDescribedByQualifier -- com.webobjects.jdbcadaptor.JDBCChannel method failed to update row in database Stack trace: File Line# Method Package
Here is my basic code: EOEditingContext ec = session.defaultEditingContext(); .... IdeaRating ir = findIdeaRating(session.getUser(), topIdea); else { //update ideaRating int myRatingInt = new Integer(myRating).intValue(); topIdea.updateRatingToAverage(ir.rating().intValue(), myRatingInt); ir.setRating(myRatingInt); ec.saveChanges(); }
Any ideas?
Thanks! Tarun |
_______________________________________________
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