Add SongAlbumMap

This commit is contained in:
vfsfitvnm
2022-06-30 13:49:05 +02:00
parent 58f821534e
commit d07d3f23b2
8 changed files with 810 additions and 49 deletions

View File

@@ -8,14 +8,15 @@ import androidx.room.Relation
data class DetailedSong(
@Embedded val song: Song,
@Relation(
entity = Album::class,
parentColumn = "albumId",
entityColumn = "id"
) val album: Album?,
entity = SongAlbumMap::class,
entityColumn = "songId",
parentColumn = "id"
)
val albumId: String?,
@Relation(
entity = Artist::class,
parentColumn = "id",
entityColumn = "id",
parentColumn = "id",
associateBy = Junction(
value = SongArtistMap::class,
parentColumn = "songId",