From: David ‘Bombe’ Roden Date: Thu, 19 Apr 2012 14:31:40 +0000 (+0200) Subject: Use lazy group creator. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0628c1f427c2abf3d840e9fd0b8f6ce48bce9706;p=demoscenemusic.git Use lazy group creator. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java index 374bb6c..d8b9d62 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DataManager.java @@ -128,7 +128,7 @@ public class DataManager { query.addField(new Field("GROUPS.*")); query.addJoin(new Join(JoinType.INNER, "GROUP_ARTISTS", new Field("GROUPS.ID"), new Field("GROUP_ARTISTS.GROUP_"))); query.addWhereClause(new ValueFieldWhereClause(new ValueField("GROUP_ARTISTS.ARTIST", new StringParameter(artistId)))); - return database.getMultiple(query, DefaultGroup.CREATOR); + return database.getMultiple(query, groupCreator); } private class TrackLoader implements ResultProcessor {