On 12 December 2011 10:39, Alexander Orlov <[email protected]> wrote:
> I've got sth. like:
>
> @ProxyFor(value = Report.class, locator = CommonLocator.class)
> public interface ReportProxy extends EntityProxy {
>     // ...
>     Integer getUserId(); // works
>
>     void setUserId(Integer userId);
>
>     UserProxy getUser(); // doesn't work
>
>     void setUser(UserProxy user);
> }
>
> @Service(value = ReportDAOService.class, locator = DAOServiceLocator.class)
> public interface ReportRequest extends RequestContext {
>    // ...
>     Request<List<ReportProxy>> getReports(Integer sessionId);
> }
>
>
> Calling getReports(sessionId) retrieves the reports where getUserId()
>  returns the proper userId whereby getUser() returns null. On the server
> side calling getUser() on result.get(0)  returns the proper entity/object
> value as well.
>
> Any idea, how I can get getUser()'s UserProxy representation?

By default, you only get a partial proxy. See [1] and also getPaths()
of the Editor framework.

[1] 
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to