diff options
Diffstat (limited to 'app/src/main/java/com/example/wiimmterfaceandroid/model')
-rw-r--r-- | app/src/main/java/com/example/wiimmterfaceandroid/model/FriendCode.java | 5 |
1 files changed, 4 insertions, 1 deletions
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; |