Ack, vilya only depends on depot-1.0, so it doesn't have parameterized SQLExpressions. Eclipse is exporting trunk, so I thought it needed them. Rolling back 1031.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@1032 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Charlie Groves
2010-12-09 22:01:36 +00:00
parent 5f1e197ce1
commit 6d06a05fa6
@@ -124,7 +124,7 @@ public class RatingRepository extends DepotRepository
public List<RatingRecord> getTopRatings ( public List<RatingRecord> getTopRatings (
int gameId, int limit, long since, Set<Integer> playerIds) int gameId, int limit, long since, Set<Integer> playerIds)
{ {
List<SQLExpression<?>> where = Lists.newArrayList(); List<SQLExpression> where = Lists.newArrayList();
where.add(RatingRecord.GAME_ID.eq(gameId)); where.add(RatingRecord.GAME_ID.eq(gameId));
if (since > 0L) { if (since > 0L) {
where.add(RatingRecord.LAST_UPDATED.greaterThan( where.add(RatingRecord.LAST_UPDATED.greaterThan(
@@ -249,7 +249,7 @@ public class RatingRepository extends DepotRepository
// Without distinct, I must load all ratings and throw out all but the first. They're not // Without distinct, I must load all ratings and throw out all but the first. They're not
// that big, but still. // that big, but still.
List<SQLExpression<?>> conditions = Lists.newArrayList(); List<SQLExpression> conditions = Lists.newArrayList();
conditions.add(RatingRecord.PLAYER_ID.in(playerIds)); conditions.add(RatingRecord.PLAYER_ID.in(playerIds));
if (gameIds != null) { if (gameIds != null) {
conditions.add(RatingRecord.GAME_ID.in(gameIds)); conditions.add(RatingRecord.GAME_ID.in(gameIds));