I'm using JDO with Google App Engine for storage and I'm wondering what is the difference between the Key object and Long for id?
I find the long ID more practical, am I missing anything?
Thanks.
A Key
is globally uniquely identifier which uniques identifies an entity across all of app engine. It consists of two pieces:
Regardless of whether you choose to use a long or a string as the second piece, there is a Key
object is associated with every entity stored in the datastore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With