SelectQuery q = create().selectQuery();
q.addFrom(TAuthor());
q.addSelect(TAuthor().getFields());
q.addOrderBy(TAuthor_LAST_NAME());
Result<?> result = q.fetch();
assertEquals(2, result.size());
assertEquals("Coelho", result.get(0).getValue(TAuthor_LAST_NAME()));
assertEquals("Orwell", result.get(1).getValue(TAuthor_LAST_NAME()));