Thanks for the reply but it does not work. Have a look at this.

I have checked it in debugger, It successfuly fetch desired record.
but after changing it does not saved. No error :(

 SMSUser u = pm.getObjectById(SMSUser.class,tu.UserId);
                        u.ContractPerson = req.getParameter("ContractPerson");
                        u.Company = req.getParameter("Company");
                        u.Address = req.getParameter("Address");
                        u.Phone = req.getParameter("Phone");
                        pm.makePersistent(u);


On Feb 19, 12:15 am, Jake <jbrooko...@cast.org> wrote:
> The Google App Engine instructions focus on JDO for the datastore
> implementation.  JDO doesn't have the traditional "update" function.
> You either modify it and close the persistence manager that returned
> the object (it knows it changed and updates accordingly) or you just
> persist the object again with the same ID to overwrite it.
>
> See:http://code.google.com/appengine/docs/java/datastore/creatinggettinga...
>
> I believe JPA has an update feature, but if you're new to it I suggest
> JDO since it has better documentation in GAE.
>
> Jake
>
> On Feb 18, 10:55 am, Manjoor <manjoora...@gmail.com> wrote:
>
>
>
> > I have been searching for sample java program to add,editand delete
> > records. I found many example showing how to add and delete records
> > but not a single about editing. Do anyone have a sample source link to
> > show how toedita record ???- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to