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].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to