主キー指定漏れ

This commit is contained in:
r-ca 2024-01-28 11:39:23 +09:00
parent ff210f50a9
commit 8e1127586d
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -1,15 +1,18 @@
package one.nem.lacerta.source.database.entity; package one.nem.lacerta.source.database.entity;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo; import androidx.room.ColumnInfo;
import androidx.room.Entity; import androidx.room.Entity;
@Entity(tableName = "toxi_document") @Entity(primaryKeys = {"parent_document_id", "child_document_id"}, tableName = "toxi_document")
public class ToxiDocumentEntity { public class ToxiDocumentEntity {
@ColumnInfo(name = "parent_document_id") @ColumnInfo(name = "parent_document_id")
@NonNull
public String parentDocumentId; public String parentDocumentId;
@ColumnInfo(name = "child_document_id") @ColumnInfo(name = "child_document_id")
@NonNull
public String childDocumentId; public String childDocumentId;
@ColumnInfo(name = "order") @ColumnInfo(name = "order")