[Database] Remove orphaned objects. Added helpers to access releases and artists

This commit is contained in:
emeric
2015-08-03 12:56:23 +02:00
parent c1a4451fbd
commit 672aee9347
7 changed files with 64 additions and 24 deletions
+5 -1
View File
@@ -33,8 +33,9 @@ namespace Database
class Track;
class Genre;
class Release;
class Artist
class Artist : public Wt::Dbo::Dbo<Artist>
{
public:
@@ -58,6 +59,9 @@ class Artist
std::string getName(void) const { return _name; }
std::string getMBID(void) const { return _MBID; }
// Get the releases that have at least one track for this artist
std::vector<Wt::Dbo::ptr<Release> > getReleases();
void setMBID(std::string mbid) { _MBID = mbid; }
// Create