Exemplo n.º 1
0
 public void testSort3WithFilter() {
   Filter filter = Predicates.equal("name", "quux");
   StringBuilder build =
       QueryBuilder.forIds(dialect, WorkspaceInfo.class, dbMappings)
           .filter(filter)
           .sortOrder(Predicates.asc("foo"), Predicates.desc("bar"), Predicates.asc("baz"))
           .build();
 }
Exemplo n.º 2
0
 public void testSort3() {
   Filter filter = Predicates.acceptAll();
   StringBuilder build =
       QueryBuilder.forIds(dialect, WorkspaceInfo.class, dbMappings)
           .filter(filter)
           .sortOrder(Predicates.asc("foo"), Predicates.desc("bar"), Predicates.asc("baz"))
           .build();
 }