Yes you do.

From:  Vik <vik....@gmail.com>
Reply-To:  <google-appengine-java@googlegroups.com>
Date:  Wed, 13 Oct 2010 18:47:33 +0530
To:  Google App Engine for Java <google-appengine-java@googlegroups.com>
Subject:  [appengine-java] Fwd: entity update question


Hie

I do for create like

try{
     Employee e = new Employee();
    pm.makePersistent(e);
}finally(){
   pm.close();
}


For update case I am getting the entity by id and updating one of the
attribute like
Employee e = pm.getObectById(empPK, Employee.class);
e.setSalary(1000);

the question is do i need to call the below statement in this case as well?
 pm.makePersistent(e)

Thankx and Regards

Vik
Founder
www.sakshum.com <http://www.sakshum.com>
www.sakshum.blogspot.com <http://www.sakshum.blogspot.com>


-- 
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.


-- 
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