Fix user primary key
This commit is contained in:
parent
997b43f2e2
commit
bed927d441
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ import io.realm.annotations.PrimaryKey;
|
|||
public class User extends RealmObject{
|
||||
public static final String TAG = User.class.getSimpleName();
|
||||
|
||||
public static final String PRIMARY_KEY = "username";
|
||||
public static final String PRIMARY_KEY = "id";
|
||||
|
||||
@PrimaryKey
|
||||
private int id;
|
||||
|
|
Loading…
Add table
Reference in a new issue