Hi Dmitry. After fetching the MyClassA entity, is the Vector object empty
(i.e. the Vector has been instantiated but has 0 items) or null?
- Jason

On Tue, Sep 1, 2009 at 9:28 AM, Dmitry Anipko <dmitry.ani...@gmail.com>wrote:

>
> Hi,
>
> I'm stuck with an issue I hope someone can help with (googling doesn't
> produce much useful results)
>
> I have Java class MyClassA declared with @PersistenceCapable and that
> has all its members declared with @Persistent.
>
> One of the members is of type Vector<MyClassB> myClassBVectorMember,
> declared with @Persistent(serialized="true").
>
> I want the POJO XML serialization to happen for the
> myClassBVectorMember when I serialize the object of MyClassA using
> JDO.
>
> MyClassB implements Serializable.
>
> Now, what happens, is that serialization and deserialization of all
> the other fields (of core types) in MyClassA works fine, but the
> vector isn't serialized correctl - when the object is serialized and
> deserialized, the vector is always re-created empty.
>
> If someone can give any hints or references to what attributes I need
> to use in both MyClassA and MyClassB to achieve the correct POJO XML
> serialization within a GAE datastore object, I'd appreciate it.
>
> 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-java@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