Is there StringListProperty just in Python or in Java too? I cant find it in the Java API.
+2
A:
You can create one by having
@Persistent
List<String> favoriteFoods;
Details can be found at http://code.google.com/appengine/docs/java/datastore/dataclasses.html
AutomatedTester
2009-07-29 15:10:13
Sorry, I didn't make it clear that I don't want to use JPA or JDO but the low-level-API. But I try a setPrperty(name, list-of-strings) then.
Peter Paul
2009-07-29 18:54:47
+1
A:
Per the docs,
The type of a field can be any of the following...
...
a Collection (such as a java.util.List<...>) or an array of values of a core datastore type
so a List<String>
should just work.
Alex Martelli
2009-07-29 15:10:25