Hi,

In the Datastore API (http://code.google.com/intl/sv-SE/appengine/docs/
java/javadoc/com/google/appengine/api/datastore/
Entity.html#setProperty(java.lang.String, java.lang.Object) the
following statement exists:

"All Collections are prone to losing their sort order and their
original types as they are stored in the datastore. For example, a
TreeSet may be returned as a List from getProperty(java.lang.String),
with an arbitrary re-ordering of elements."

What does this actually mean and how can I guarantee my sort order of,
say a List?

As you cannot store Maps in App Engine there is no way to attach keys
to the values and use that route to guarantee the sort order. I cannot
rely on any natural sort order in my collection and sort afterwards.


Best Regards,
Daniel

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