Comment 1 for bug 633110

Revision history for this message
Samppa Saarela (samppa-saarela) wrote :

Wildcard can now be used through Wildcard class:

@Test
public void wildcardAll() {
    expectedQuery = "select * from EMPLOYEE2 e";
    query().from(employee).uniqueResult(Wildcard.all);
}

@Test
public void countAll() {
    expectedQuery = "select count(*) as rowCount from EMPLOYEE2 e";
    PNumber<Long> rowCount = new PNumber<Long>(Long.class, "rowCount");
    query().from(employee).uniqueResult(Wildcard.count().as(rowCount));
}