request factory list of children behavior when persist()

65 views
Skip to first unread message

Yan

unread,
Aug 13, 2012, 3:05:05 PM8/13/12
to google-we...@googlegroups.com
Hi there, 

I am having a hard time to understand this. 

One Entity Proxy (parent) contains a list of other Entity Proxy (children).  I build bi-directional relationship in JPA. 

On client side, I get a list of children and then immediately enable edit in RF, and send it to backend to persist.

From client, I am retrieving the children list populated correctly, but when I persist the exact same object to backend, I see one less child object (it is set to null) in the setter() in EntityProxy. The size of children list is still the same, but obviously one of the child is now null. 

Why is that the case?

Thanks,
Yan

Yan

unread,
Aug 13, 2012, 4:09:44 PM8/13/12
to google-we...@googlegroups.com
This seems to have something to do with my Child entity proxy in turn contains a collection of ValueProxy object. 

And, if the child proxy does not have any valueproxy object, then I see this behavior (i.e., request factory sends in NULL instead of the object).

Thanks,
Yan

TimOnGmail

unread,
Jan 23, 2013, 3:01:39 PM1/23/13
to google-we...@googlegroups.com

TimOnGmail

unread,
Jan 23, 2013, 5:10:53 PM1/23/13
to google-we...@googlegroups.com
Nevermind about the below - I found it was my fault.  See the link below for info.

- Tim
Reply all
Reply to author
Forward
0 new messages