[appengine-java] Re: datanucleus - key -- set the name component instead

2009-08-26 Thread Jason (Google)
Hi Shawn. In this case, yes, you'll have to re-fetch the entity to update it. Even though you have the ID of the entity in your custom bean, all of the metadata that is associated with the detached entity is lost. If you re-fetch the entity (detach it if you immediately close the PersistenceManager

[appengine-java] Re: datanucleus - key -- set the name component instead

2009-08-24 Thread Larry Cable
On Jul 13, 2:16 am, Shawn Brown wrote: > Hello, > > I'm seeing "Attempt was made to manually set the id component of a Key > primary key.  If you want to control the value of the primary key, set > the name component instead." > > Do I have to fetch an object before updating it? > > I'm fetching