Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. package men.ngopi.zain.catatanku.local.entity;
  2.  
  3. import android.os.Parcel;
  4. import android.os.Parcelable;
  5.  
  6. import androidx.room.ColumnInfo;
  7. import androidx.room.Entity;
  8. import androidx.room.PrimaryKey;
  9.  
  10. @Entity
  11. public class NoteEntity implements Parcelable {
  12.  
  13. @PrimaryKey(autoGenerate = true)
  14. @ColumnInfo(name = "id")
  15. private int id;
  16.  
  17. @ColumnInfo(name = "title")
  18. private String title;
  19.  
  20. @ColumnInfo(name = "note")
  21. private String note;
  22.  
  23. public NoteEntity() {
  24. }
  25.  
  26. public int getId() {
  27. return id;
  28. }
  29.  
  30. public void setId(int id) {
  31. this.id = id;
  32. }
  33.  
  34. public String getTitle() {
  35. return title;
  36. }
  37.  
  38. public void setTitle(String title) {
  39. this.title = title;
  40. }
  41.  
  42. public String getNote() {
  43. return note;
  44. }
  45.  
  46. public void setNote(String note) {
  47. this.note = note;
  48. }
  49.  
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement