Hi,

I am building a web app using GAE Java. I have a class that uses a
Long ID as its primary key.

I now want to create a new class that would be the parent class to
this original class (a one to many relationship) however the children
that already exist need to have a primary key of type "key", not the
Long ID I have now.

What is the best way to change the primary key to be type "key"
instead of long for the existing persisted entities? Should I create a
new class with primary key of type "key" and instantiate and persist
new objects that copy the field values from the old ones? Or can I
somehow just update the existing class?

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.

Reply via email to