From 315fae1cd78fd6c754f0d8748882a222e443e3e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 18 Apr 2012 12:26:42 +0200 Subject: [PATCH] Tracks can belong to multiple artists and styles. --- .../demoscenemusic/data/AbstractTrack.java | 19 +++++++++++-------- .../net/pterodactylus/demoscenemusic/data/Track.java | 11 +++++++---- 2 files changed, 18 insertions(+), 12 deletions(-) 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