RequestFactory 中的 EntityProxies 有问题。
@ProxyFor(value=Day.class, locator = DayLocator.class)
public interface DayProxy extends EntityProxy{
List<OrganizerEntryProxy> getEntries();
void setEntries(List<OrganizerEntryProxy> entries);
etc...
}
实体:
public class Day implements Serializable {
private List<OrganizerEntry> entries;
etc...
public List<OrganizerEntry> getEntries(){
return Collections.unmodifiableList(entries);
}
public void setEntries(List<OrganizerEntry> entries){
this.entries = entries;
}
etc....
}
OrganizerEntryProxy
不是。EntityProxy
_ValueProxy
现在,在服务中,我向客户端发送一个包含实体列表的Day
实例。当它在客户端收到时返回 null。单独检索工作正常。OrganizerEntry
OrganizerEntry
DayProxy.getEntries()
OrganizerEntity
我究竟做错了什么?