From: David ‘Bombe’ Roden Date: Wed, 18 Apr 2012 10:26:42 +0000 (+0200) Subject: Tracks can belong to multiple artists and styles. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=315fae1cd78fd6c754f0d8748882a222e443e3e6;p=demoscenemusic.git Tracks can belong to multiple artists and styles. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java index b59ad83..810a528 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java @@ -17,6 +17,9 @@ package net.pterodactylus.demoscenemusic.data; +import java.util.List; +import java.util.Set; + /** * TODO * @@ -37,21 +40,21 @@ public abstract class AbstractTrack extends AbstractBase implements Track { return this; } - public Artist artist() { - return value("artist", Artist.class).get(); + public List artists() { + return value("artists", List.class).get(); } - public Track artist(Artist artist) { - value("artist", Artist.class).set(artist); + public Track artists(List artists) { + value("artists", List.class).set(artists); return this; } - public Style style() { - return value("style", Style.class).get(); + public Set