I've noticed that i can perform query using the getObjectById while
using the ID or the Key

pm.getObjectById(myClass.class, idString);
pm.getObjectById(myClass.class, keyString);

idString and keyString are different string values,

is it possible because of the fact that the id attribute is defined:

@PrimaryKey
@Persistent
private String id;

if i define the id Primary key, this allows me to use the
getObjectById with different values (with id value or with key value
of the same object to get this same object)

which way is better ? Using the id value or the key value?

-- 
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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to