From 8e1127586d2b72e9aa0b4390bbb9712b526e89b0 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 28 Jan 2024 11:39:23 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E3=82=AD=E3=83=BC=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E6=BC=8F=E3=82=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/source/database/entity/ToxiDocumentEntity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/src/main/java/one/nem/lacerta/source/database/entity/ToxiDocumentEntity.java b/source/src/main/java/one/nem/lacerta/source/database/entity/ToxiDocumentEntity.java index 08c24b31..1b23f33b 100644 --- a/source/src/main/java/one/nem/lacerta/source/database/entity/ToxiDocumentEntity.java +++ b/source/src/main/java/one/nem/lacerta/source/database/entity/ToxiDocumentEntity.java @@ -1,15 +1,18 @@ package one.nem.lacerta.source.database.entity; +import androidx.annotation.NonNull; import androidx.room.ColumnInfo; import androidx.room.Entity; -@Entity(tableName = "toxi_document") +@Entity(primaryKeys = {"parent_document_id", "child_document_id"}, tableName = "toxi_document") public class ToxiDocumentEntity { @ColumnInfo(name = "parent_document_id") + @NonNull public String parentDocumentId; @ColumnInfo(name = "child_document_id") + @NonNull public String childDocumentId; @ColumnInfo(name = "order")