diff options
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model/JoinCardWithUser.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/JoinCardWithUser.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinCardWithUser.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinCardWithUser.java index 6fea1765b..c8ef6f9fa 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinCardWithUser.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinCardWithUser.java @@ -2,9 +2,10 @@ package it.niedermann.nextcloud.deck.model; import android.arch.persistence.room.Entity; import android.arch.persistence.room.ForeignKey; +import android.support.annotation.NonNull; @Entity( - primaryKeys = { "userId", "cardId" }, + primaryKeys = {"userId", "cardId"}, foreignKeys = { @ForeignKey(entity = User.class, parentColumns = "localId", @@ -14,7 +15,9 @@ import android.arch.persistence.room.ForeignKey; childColumns = "cardId") }) public class JoinCardWithUser { + @NonNull private Long userId; + @NonNull private Long cardId; public Long getUserId() { |