From 3d94cf1eef60505546767341af6e292bf60e4020 Mon Sep 17 00:00:00 2001 From: Michel Jung Date: Sun, 21 Apr 2019 11:09:11 +0200 Subject: [PATCH] Expose `gameReviewsSummary` as Elide root Since not every game has a review summary, querying games and sorting by review score is very inefficient. This way, the review summaries can be queried directly. --- .../java/com/faforever/api/data/domain/GameReviewsSummary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/faforever/api/data/domain/GameReviewsSummary.java b/src/main/java/com/faforever/api/data/domain/GameReviewsSummary.java index f84733545..88ef8e66e 100644 --- a/src/main/java/com/faforever/api/data/domain/GameReviewsSummary.java +++ b/src/main/java/com/faforever/api/data/domain/GameReviewsSummary.java @@ -16,7 +16,7 @@ @Entity @Setter @Table(name = "game_reviews_summary") -@Include(type = "gameReviewsSummary") +@Include(rootLevel = true, type = "gameReviewsSummary") @Immutable public class GameReviewsSummary { private int id;