Thanks a lot for taking time to create a test case. I think I know what I am doing wrong. I actually tried JDO interface too and saw the same issue. I realized the old <data> items The first time i pass a json string for "list1", "list2" items and they get saved into List<SmartItem> data field in MyDataObject.
Then I do a find for the same instance (passing same key) of MyDataObject. I set the List<SmartItem> data to "list1", "list2", "list3". I was expecting the MyDataObject to replace it's existing "data" list and substitute with my new "list1", "list2", "list3" items. When I did a find() again, I got back "list1","list2","list1","list2","list3". I didn't realize the old items were objects that were tied to my MyDataObject and unless I remove them, they will persist and tied to my parent object. So I implemented a "compare" and SmartItem and do selective inserts and do selective inserts/updates. Thanks for trying it in a test case though. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/0SC4YpdFXzwJ. 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.
