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