Yes you do.
From: Vik <[email protected]>
Reply-To: <[email protected]>
Date: Wed, 13 Oct 2010 18:47:33 +0530
To: Google App Engine for Java <[email protected]>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.