It is an interesting question - when I look in the debugger at the
object that just has been de-serialized, it shows null for that
member; however after I extract that value using a getMember helper,
that returns a Vector with 0 members. Since the former is probably a
debugger artifact, I think the answer is the latter.

On Wed, Sep 2, 2009 at 11:47 AM, Jason (Google)<[email protected]> wrote:
> 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 <[email protected]>
> 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 [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