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

This commit is contained in:
r-ca 2023-12-14 03:36:37 +09:00
parent 6e8ad7f9fc
commit fdb2d535cd
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;
@ -9,6 +10,7 @@ public class Tag {
@PrimaryKey @PrimaryKey
@ColumnInfo(name = "id") @ColumnInfo(name = "id")
@NonNull
public String id; // タグID public String id; // タグID
@ColumnInfo(name = "tag_name") @ColumnInfo(name = "tag_name")