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/JoinBoardWithPermission.java | |
parent | 18a3805c1c7f785f46062d8df31205aef1a586cb (diff) |
More DAOs and refactoring
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/model/JoinBoardWithPermission.java')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/model/JoinBoardWithPermission.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinBoardWithPermission.java b/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinBoardWithPermission.java index a811b7897..2f5b7b076 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinBoardWithPermission.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/model/JoinBoardWithPermission.java @@ -2,19 +2,22 @@ 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 = { "permissionId", "boardId" }, + primaryKeys = {"permissionId", "boardId"}, foreignKeys = { @ForeignKey(entity = Board.class, - parentColumns = "id", + parentColumns = "localId", childColumns = "boardId"), @ForeignKey(entity = Permission.class, parentColumns = "id", childColumns = "permissionId") }) public class JoinBoardWithPermission { + @NonNull private Long permissionId; + @NonNull private Long boardId; public Long getPermissionId() { |