Peter, I use it as the primary key of my entity. No problem.
fabrizio PS: please, do not double post on the mailing list. On Thu, Apr 14, 2011 at 2:09 AM, Peter <[email protected]> wrote: > Fabrizio, > > Thank you for your help. > > Once I get the user id, do I still need to run it through createKey or can > I directly use the ID as the primary key? > > User user = userservice.getCurrentUser(); > String id = user.getUserId(); > Key userIdKey = KeyFactory.createKey("Users", id); > Entity eUser = new Entity("Users", userIdKey); > > Appreciate your help. > > Regards, > Peter > > > -- > 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.
