Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package men.ngopi.zain.catatanku.local.entity;
- import android.os.Parcel;
- import android.os.Parcelable;
- import androidx.room.ColumnInfo;
- import androidx.room.Entity;
- import androidx.room.PrimaryKey;
- @Entity
- public class NoteEntity implements Parcelable {
- @PrimaryKey(autoGenerate = true)
- @ColumnInfo(name = "id")
- private int id;
- @ColumnInfo(name = "title")
- private String title;
- @ColumnInfo(name = "note")
- private String note;
- public NoteEntity() {
- }
- public int getId() {
- return id;
- }
- public void setId(int id) {
- this.id = id;
- }
- public String getTitle() {
- return title;
- }
- public void setTitle(String title) {
- this.title = title;
- }
- public String getNote() {
- return note;
- }
- public void setNote(String note) {
- this.note = note;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement