Here is the code I was using to attempt to convert the JDO object to an Entity and save it.
MyObject obj1; MyObject obj2; obj1.setData(1); obj2.setData(2); ArrayList objectsToBatchWrite = new ArrayList<Entity>(); objectsToBatchWrite.add(new Entity(obj1.getKey())); objectsToBatchWrite.add(new Entity(obj2.getKey())); DatastoreService service = DatastoreServiceFactory.getDatastoreService(); service.put(null, objectsToBatchWrite); This obviously isn't the right thing to do. This actually writes the objects, but it writes a blank object. I guess it's because the Entity has no valid data set for it. Is there a way to convert the MyObject to an Entity and preserve the data that has been set for it? Thanks. -- 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.
