Re: RequestFactory - how to fetch object graph

2012-10-18 Thread Eugene Ivlev
Oh my God! It's disgusting, but it is so! Isn't exist better way to work with nested objects? суббота, 11 декабря 2010 г., 20:10:03 UTC+4 пользователь tshalif написал: I wonder either there is a better way to tell RequestFactory to recursively populate my object graph - I feel a bit silly

Re: RequestFactory - how to fetch object graph

2012-10-18 Thread Jens
Editor Framework: RequestFactoryEditorDriver.getPaths() is one solution. It gives you all paths needed by your Editor hierarchy. In GWT 2.5 there is a global/wildcard operator *: http://code.google.com/p/google-web-toolkit/issues/detail?id=6697 (but ** is not supported yet). I think thats all

Re: RequestFactory - how to fetch object graph

2012-10-18 Thread Richard
AFAIK one thing the with does for you is call the method named, so with(lines) will call getLines(), which I imagine would let you build up any structure, including a recursive one. I haven't tried deeply nested structures, though - please update if you know better. On Tuesday, November 23,

Re: RequestFactory - how to fetch object graph

2010-12-11 Thread tshalif
I wonder either there is a better way to tell RequestFactory to recursively populate my object graph - I feel a bit silly using this: PojoShamRequest request = PojoShamRequestFactory.Util.get().pojoShamRequest(); request.findPojoSham(777L).with(

RequestFactory - how to fetch object graph

2010-11-23 Thread mp31415
By default RequestFactory(RF) fetches an entity proxy itself(the root) but does not fetch other entity proxies referenced from the root. In order to fetch referenced properties their names must be provided using with() method on the request(context). Is there a syntax to request proxies nested

Re: RequestFactory - how to fetch object graph

2010-11-23 Thread mp31415
It seems dot notation works (found in RequestFactory unit tests). Something along the lines .with(lines.start).with(lines.end). On Nov 23, 10:59 am, mp31415 mp_...@yahoo.com wrote: By default RequestFactory(RF) fetches an entity proxy itself(the root) but does not fetch other entity proxies