Hi,

I think that I cannot use Object as Key.

Please refer to the following links

http://code.google.com/intl/us/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys

thanks.


2010/1/25 jopaki <[email protected]>:
> Can I represent a primary key (Key) in an entity class as an Object
> ref?  In other words, can I do:
>
> @PersistenceCapable(identityType = IdentityType.APPLICATION)
> public Class AnEntity {
>
> �...@primarykey
> �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>  private Object pk;
>
> }
>
> 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.
>
>

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