I'm currently storing an ID property as an Integer in the datastore.
This ID is actually an ID from a third party API.  Recently they
announced that this ID field will now be a String type.

I understand that different entities of the same kind can have
different properties as well as having the same property with
different types.  This is fine for new entities that I save with the
updated Java model, but how do I handle retrieval of old entities
using this updated Java model?  I'm currently getting a
ClassCastException ("java.lang.Long cannot be cast to
java.lang.String") which is to be expected.

What's the recommendation on how to handle this, as this would appear
to be a common scenario?

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