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/thread/747ceed8396c0ed8/b311227fbe4d9304?lnk=gst&q=serialized+fields+snippets+work#b311227fbe4d9304

Regards
Lorenzo

On Jul 7, 1:33 am, laserjim <laser...@gmail.com> 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 google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to