You have a couple of options here: - Bulk export/import using the Python bulkloader - Create an administrative action that invokes the task queue
App Engine datastore is not backed by SQL, so you don't have a lot of the convenience statements you would otherwise have. You'll have to solve the problem programmatically. On Tue, Dec 22, 2009 at 8:50 PM, vjrj <[email protected]> wrote: > Hi there, > > I have two classes with the same fields (both use a Key field) and I > want to copy all the data from one to another: > > @PersistenceCapable(identityType = IdentityType.APPLICATION) > public class SomeEntity { > @PrimaryKey > @Persistent(nullValue = NullValue.EXCEPTION) > private Key key; > (...) > } > > and > > @PersistenceCapable(identityType = IdentityType.APPLICATION) > public class SomeEntityTemporal { > @PrimaryKey > @Persistent(nullValue = NullValue.EXCEPTION) > private Key key; > > (...) > } > In MySQL I'll do something like: > CREATE TABLE sometable_tmp SELECT * FROM sometable > or similar. > > Which is the best way to do this with JDO in AppEngine? > > TIA, > > Vicente > > -- > > 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]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > > -- Ikai Lan Developer Programs Engineer, Google App Engine -- 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.
