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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]