On Wed, Jul 6, 2011 at 12:56 PM, jMotta <[email protected]> wrote:

> *
> *
> *Jeff*,
>
> You've said: "Objectify will let you change the field type to a String and
> do the right thing out of the box.", how?
>
> I know that's possible through @AlsoLoad annotation to override the default
> behavior of binding properties based on the member name. But what I
> understood about his need is that actually he have entities whose the
> property names are equals but with different object types as values. So, the
> only class shared in the String vs Long hierarchy will be Object.
>

The conversion process will merrily convert just about anything to a String.
 So going from Long -> String is easy.  The other way 'round, you would need
to use the @AlsoLoad mechanism.

Jeff

-- 
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