mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
主キー指定漏れ
This commit is contained in:
parent
ff210f50a9
commit
8e1127586d
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user