How to use RequestFactory .with for self referencing entities.

27 views
Skip to first unread message

Kathiravan Tamilvanan

unread,
Jun 27, 2011, 8:15:12 PM6/27/11
to google-we...@googlegroups.com
All,
 I am trying to retrieve an entity graph using request factory using .with and the entities are self referencing. For example, I have got Version entity and each version has a parent version.  I am trying to do the following to get the parentVersion .with("parentVersion"). The issue i get here is if i want to get the parentVersion's parent, i get a NullPointerException.

Any ideas?

Ashwin Desikan

unread,
Jun 27, 2011, 11:56:55 PM6/27/11
to google-we...@googlegroups.com
Try .with("parentVersion","parentVersion.parentVersion")

Thanks
Ashwin

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/02x-Fn_alZIJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Reply all
Reply to author
Forward
0 new messages