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?