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