How to use requestfactory: With (propertyrefs) to combine objects

I'm new to GWT. I need your professional advice

My question is how to use requestfactory: With (propertyrefs) to implement the "tree" structure when these propertyrefs themselves contain the list of items I want to retrieve

Some details:

On the server side, I have four hierarchies of domain objects a, B, C and D:

>An object contains (or I'd better say keep reference) list > B contains list > C contains list

All domain objects mentioned have corresponding proxy interfaces aproxy, bpproxy, cproxy and dpproxy, which are used on the client

On the client side, I want to get the hierarchy of all objects by requesting aproxy objects at once, so I will benefit from the ease of data access using the "get" method, and I have no obligation to make circular server requests for each sub object, sub sub object, etc

Due to specification! I should use smth Like With ("attribute ref") to get a hierarchy, but how to retrieve the combination of the following levels (in my case, each object B in the list and each object C in the list)

Thank you in advance

Solution

We can use form With ("A.B", "A.B.C") for hierarchical combination

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>