mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2025-04-13 11:40:48 +00:00
主キーにNonNullアノテーションを追加
This commit is contained in:
parent
fdb2d535cd
commit
cde4867b7e
@ -1,5 +1,6 @@
|
|||||||
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;
|
||||||
import androidx.room.PrimaryKey;
|
import androidx.room.PrimaryKey;
|
||||||
@ -10,6 +11,7 @@ import java.util.Date;
|
|||||||
public class Document {
|
public class Document {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@ColumnInfo(name = "id")
|
@ColumnInfo(name = "id")
|
||||||
|
@NonNull
|
||||||
public String id; // ドキュメントID
|
public String id; // ドキュメントID
|
||||||
|
|
||||||
@ColumnInfo(name = "title")
|
@ColumnInfo(name = "title")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user