The datastore can store lists of basic types as a List but cannot store lists of lists. All collection types are converted to lists when they are stored.

On 7 Aug 2010, at 09:28, slowpoison wrote:

I have a persistent class defined as follows

@PersistenceCapable
public class A {
...
@Persistent
List<LinkedHashSet<String>> setList;

...
}

When I try to make an object of this type persistent, I get the
following exception:
java.util.LinkedHashSet is not a supported property type.
        at
com .google .appengine .api .datastore.DataTypeUtils.checkSupportedSingleValue(DataTypeUtils.java:
184)
        at
com .google .appengine .api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:
149)
        at
com .google .appengine .api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:
123)
        at com.google.appengine.api.datastore.Entity.setProperty(Entity.java:
280)
        at
org .datanucleus .store .appengine .DatastoreFieldManager.storeObjectField(DatastoreFieldManager.java:
843)
        at
org .datanucleus .state .AbstractStateManager.providedObjectField(AbstractStateManager.java:
1037)
...

Any clue, what's going wrong?

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