diff --git a/app/src/main/java/com/example/notatkon/database/NoteEntity.java b/app/src/main/java/com/example/notatkon/database/NoteEntity.java index f481b24..366c529 100644 --- a/app/src/main/java/com/example/notatkon/database/NoteEntity.java +++ b/app/src/main/java/com/example/notatkon/database/NoteEntity.java @@ -1,5 +1,6 @@ package com.example.notatkon.database; +import androidx.annotation.NonNull; import androidx.room.ColumnInfo; import androidx.room.Entity; import androidx.room.PrimaryKey; @@ -70,4 +71,10 @@ public class NoteEntity { public void setContent(String content) { this.content = content; } + + @NonNull + @Override + public String toString() { + return title + " : " + dateTime; + } } \ No newline at end of file