主キーにNonNullアノテーションを追加

This commit is contained in:
r-ca 2023-12-14 03:37:20 +09:00
parent fdb2d535cd
commit cde4867b7e
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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")