Use Ops and FluentExp instead of doing things manually.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@877 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2009-09-10 02:31:16 +00:00
parent 8efbc2349c
commit 0240e18140
@@ -48,7 +48,6 @@ import com.samskivert.depot.clause.OrderBy;
import com.samskivert.depot.clause.QueryClause;
import com.samskivert.depot.clause.Where;
import com.samskivert.depot.expression.SQLExpression;
import com.samskivert.depot.operator.And;
import com.threerings.parlor.rating.util.Percentiler;
@@ -86,7 +85,7 @@ public class RatingRepository extends DepotRepository
return Collections.emptyList();
}
return findAll(RatingRecord.class,
new Where(new And(RatingRecord.GAME_ID.eq(gameId),
new Where(Ops.and(RatingRecord.GAME_ID.eq(gameId),
RatingRecord.PLAYER_ID.in(players))));
}