Skip to content

Commit

Permalink
03_03e
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgassner committed Jul 21, 2020
1 parent 6bfd827 commit 778f5a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/example/plainolnotes4/Constants.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package com.example.plainolnotes4

const val NEW_NOTE_ID = 0
const val TAG = "noteLogging"
const val NOTE_ID_KEY = "noteIdKey"
const val TAG = "noteLogging"
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 778f5a5

Please sign in to comment.