mirror of
https://github.com/emptyynes/EmptyPlayer.git
synced 2025-05-09 18:53:09 +03:00
temporal abyss
This commit is contained in:
parent
e5fb995c84
commit
277d807068
1 changed files with 2 additions and 2 deletions
|
@ -11,10 +11,10 @@ import java.util.UUID
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
data class Album(
|
data class Album(
|
||||||
@ColumnInfo val name: String, @ColumnInfo val artistId: UUID
|
@ColumnInfo val name: String
|
||||||
) {
|
) {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
var uuid: UUID = UUID.nameUUIDFromBytes("$name$artistId".toByteArray())
|
var uuid: UUID = UUID.nameUUIDFromBytes(name.toByteArray())
|
||||||
}
|
}
|
||||||
|
|
||||||
@Dao
|
@Dao
|
||||||
|
|
Loading…
Reference in a new issue