Hello, I am trying to use a JDO based model in conjunction with GWT's new RequestFactoryServlet. My (example) application edits Recipes, a Recipe owns a list of Ingredients:
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true") class Recipe { [...] @Persistent @Element(dependent = "false") private List<Ingredient> ingredients; [...] public List<Ingredient> getIngredients() { return this.ingredients; } public void setIngredients(List<Ingredient> ingredients) { this.ingredients.clear(); this.ingredients.addAll(ingredients); } [...] } The RequestFactoryServlet will call setIngredients() with an updated list of ingredients, where some new Ingredients might be included, or the order of the elements might have changed. Here's the problem however: The clear() call leads to JDO marking the elements persistent-deleted and the addAll does not revert that, even though I tried disabling the "dependent"-Option. Apparently, as soon as I take something out of this owned list-relationship, it gets removed from the persistence, which seems to make it impossible to re- order the list. Why is that, and is there a way to work around it? Thanks, Tobias -- 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.