From 50dfc57c61a01dc20a42129246b458bf90e26154 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 4 May 2021 20:18:17 -0600 Subject: getting closer to implementing the recycler view --- .../main/java/com/example/wiimmterfaceandroid/model/FriendCode.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/com/example/wiimmterfaceandroid/model') diff --git a/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java b/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java index cb13138..3aad0a1 100644 --- a/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java +++ b/app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java @@ -9,10 +9,13 @@ import java.io.Serializable; @Entity public class FriendCode implements Serializable { + @PrimaryKey (autoGenerate = true) + public long id; + @ColumnInfo(name="name") public String name; - @PrimaryKey + @NonNull @ColumnInfo(name="friendCode") public String friendCode; -- cgit v1.2.3