Skip to content

Commit

Permalink
Adhere to test type TechEmpower#3 requirement 6
Browse files Browse the repository at this point in the history
- It is not acceptable to retrieve all required rows using a
  SELECT ... WHERE id IN (...) clause.
  • Loading branch information
lhotari committed Nov 21, 2013
1 parent 976cccf commit fbde981
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class HelloController {
world.randomNumber = random.nextInt(10000) + 1
}
} else {
worlds = World.getAll(worldIds as Serializable[])
worlds = new ArrayList<World>(queries)
for (Integer id : worldIds) {
worlds.add(World.read(id))
}
}
return worlds
}
Expand Down

0 comments on commit fbde981

Please sign in to comment.