Auto generate location entity key.
This commit is contained in:
parent
1bd6b6833f
commit
c840e621e2
|
|
@ -6,7 +6,7 @@ import androidx.room.PrimaryKey;
|
|||
|
||||
@Entity
|
||||
public class LocationEntity {
|
||||
@PrimaryKey
|
||||
@PrimaryKey(autoGenerate = true)
|
||||
public long id;
|
||||
|
||||
@ColumnInfo(name = "accuracy")
|
||||
|
|
|
|||
Loading…
Reference in a new issue