import java.sql.ResultSet;
import java.sql.SQLException;
+import java.util.Collection;
import net.pterodactylus.util.database.ObjectCreator;
return this;
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ @SuppressWarnings("unchecked")
+ public Collection<Artist> artists() {
+ return value("artists", Collection.class).get();
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Group artists(Collection<Artist> artists) {
+ value("artists", Collection.class).set(artists);
+ return this;
+ }
+
private static class GroupCreator implements ObjectCreator<Group> {
/**
package net.pterodactylus.demoscenemusic.data;
+import java.util.Collection;
+
/**
* TODO
*
public Group url(String url);
+ public Collection<Artist> artists();
+
+ public Group artists(Collection<Artist> artists);
+
}