Hello Lorenzo, Thanks, but perhaps my question wasn't completely clear. Direct serialization using the @Persistent annotation works fine for me. I'm trying to create a list of serialized objects, NOT a serialized list of objects.
I run into the issue when trying to create a list of serializable objects. For instance, if we assume FooObject implements Serializable, and try the following: @Element(serialized="true") List<FooObject> foos = new ArrayList<FooObject>(); The list will always be empty, contrary to my expectations. Thanks! On Jul 7, 2:59 am, "l.denardo" <[email protected]> wrote: > If you are using a serialized field you must add the serialized="true" > clause to your annotation > > @Persistent(serialized="true") > MySerializableObject serializable; > > Also notice that JDO does not automatically detect if you update only > the inner fields of the object you save, so you must substitute it > with a copy to have it persisted. > See this post for a very good overview and an explanation of the fact > above: > > http://groups.google.com/group/google-appengine-java/browse_thread/th... > > Regards > Lorenzo > > On Jul 7, 1:33 am, laserjim <[email protected]> wrote: > > > > > Hello, > > > I'm still trying to persist a list of serializable objects. I would > > expect this to be a standard collection as described > > here:http://code.google.com/appengine/docs/java/datastore/dataclasses.html... > > > FooObject is serializable, but my attempt gave me an exception: > > FooObject is not a supported property type. > > > Everything works as expected if I replace my serializable class > > (FooObject) with String. > > > How can I persist my list of FooObjects using JDO? > > > Thanks! -- 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.
