In order to avoid JDO and/or serialization exceptions, I always call some form of persistenceManager.detachCopy() before returning objects from the Datastore back to GWT. I discovered today that you must set any non-persistent properties of the object after calling detachCopy(). My initial inclination is that detachCopy() does not copy properties annotated with @NotPersistent, but I have to do a little more testing…
Archive for November 11th, 2009
AppEngine JDO tip regarding detachCopy()
Posted by David Chandler on November 11, 2009
Posted in AppEngine, Google Web Toolkit | Leave a Comment »