From 778f5a5c1dd146b77ca6e2311e13c161b8cc17e9 Mon Sep 17 00:00:00 2001 From: David Gassner Date: Tue, 21 Jul 2020 12:37:16 -0700 Subject: [PATCH] 03_03e --- app/src/main/java/com/example/plainolnotes4/Constants.kt | 3 +-- .../main/java/com/example/plainolnotes4/data/NoteEntity.kt | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/com/example/plainolnotes4/Constants.kt b/app/src/main/java/com/example/plainolnotes4/Constants.kt index 295f795..a6a3b9f 100644 --- a/app/src/main/java/com/example/plainolnotes4/Constants.kt +++ b/app/src/main/java/com/example/plainolnotes4/Constants.kt @@ -1,5 +1,4 @@ package com.example.plainolnotes4 const val NEW_NOTE_ID = 0 -const val TAG = "noteLogging" -const val NOTE_ID_KEY = "noteIdKey" \ No newline at end of file +const val TAG = "noteLogging" \ No newline at end of file diff --git a/app/src/main/java/com/example/plainolnotes4/data/NoteEntity.kt b/app/src/main/java/com/example/plainolnotes4/data/NoteEntity.kt index 22ab88d..2412dab 100644 --- a/app/src/main/java/com/example/plainolnotes4/data/NoteEntity.kt +++ b/app/src/main/java/com/example/plainolnotes4/data/NoteEntity.kt @@ -1,13 +1,9 @@ package com.example.plainolnotes4.data -import androidx.room.Entity -import androidx.room.PrimaryKey import com.example.plainolnotes4.NEW_NOTE_ID import java.util.* -@Entity(tableName = "notes") data class NoteEntity( - @PrimaryKey(autoGenerate = true) var id: Int, var date: Date, var text: String