这里有这样一个任务:
int sum = controller.getStore().boxFor(A.class).query().property(A_.field1).sum()+
controller.getStore().boxFor(A.class).query().property(A_.field2).sum()
这可以通过对数据库的单个查询来完成吗?如果可能,怎么做?非常感谢!
这里有这样一个任务:
int sum = controller.getStore().boxFor(A.class).query().property(A_.field1).sum()+
controller.getStore().boxFor(A.class).query().property(A_.field2).sum()
这可以通过对数据库的单个查询来完成吗?如果可能,怎么做?非常感谢!