mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-02 07:23:36 +00:00
Changed the order of deletion and saving of items at the time of synchronization
This commit is contained in:
@@ -5,16 +5,13 @@ import androidx.room.ColumnInfo;
|
||||
import androidx.room.Entity;
|
||||
import androidx.room.PrimaryKey;
|
||||
|
||||
@Entity(tableName = "playlist_song_cross")
|
||||
@Entity(tableName = "playlist_song_cross", primaryKeys = {"playlist_id","song_id"})
|
||||
public class PlaylistSongCross {
|
||||
@NonNull
|
||||
@PrimaryKey(autoGenerate = true)
|
||||
@ColumnInfo(name = "id")
|
||||
private int id;
|
||||
|
||||
@ColumnInfo(name = "playlist_id")
|
||||
private String playlistId;
|
||||
|
||||
@NonNull
|
||||
@ColumnInfo(name = "song_id")
|
||||
private String songId;
|
||||
|
||||
@@ -23,14 +20,6 @@ public class PlaylistSongCross {
|
||||
this.songId = songId;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getPlaylistId() {
|
||||
return playlistId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user