protected void setup() throws Exception {
    super.setup();
    reportQuery = new ReportQuery(new ExpressionBuilder());

    reportQuery.setReferenceClass(Employee.class);
    reportQuery.addAttribute("projects");
  }
  protected void setup() throws Exception {
    super.setup();
    reportQuery = new ReportQuery(new ExpressionBuilder());

    reportQuery.setReferenceClass(Employee.class);
    reportQuery.addAttribute(
        "province", reportQuery.getExpressionBuilder().get("address").get("province"));
    reportQuery.useDistinct();
  }
예제 #3
0
  protected void setup() throws Exception {
    super.setup();
    reportQuery = new ReportQuery(new ExpressionBuilder());

    reportQuery.setReferenceClass(LargeProject.class);
    reportQuery.addAttribute("name");
    reportQuery.addAttribute("budget");
    reportQuery.setSelectionCriteria(
        reportQuery.getExpressionBuilder().get("budget").greaterThan(4000));
  }