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