diff options
author | desperateCoder <echotodevnull@gmail.com> | 2018-12-22 00:44:38 +0300 |
---|---|---|
committer | desperateCoder <echotodevnull@gmail.com> | 2018-12-22 00:44:38 +0300 |
commit | ad49ba195084f884f88e211e1f81765ac710ff52 (patch) | |
tree | e72d28e154f7d530c68c632a794e99bab2a6548e /app/src/main/java/it/niedermann/nextcloud/deck/model/JoinStackWithCard.java | |
parent | 18a3805c1c7f785f46062d8df31205aef1a586cb (diff) |
More DAOs and refactoring
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model/JoinStackWithCard.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/JoinStackWithCard.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinStackWithCard.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinStackWithCard.java index 3035cb04e..de09242ca 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinStackWithCard.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinStackWithCard.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 = { "stackId", "cardId" }, + primaryKeys = {"stackId", "cardId"}, foreignKeys = { @ForeignKey(entity = Stack.class, parentColumns = "localId", @@ -14,7 +15,9 @@ import android.arch.persistence.room.ForeignKey; childColumns = "cardId") }) public class JoinStackWithCard { + @NonNull private Long stackId; + @NonNull private Long cardId; public Long getStackId() { |