Skip to content

Instantly share code, notes, and snippets.

@zainfikrih
Created September 22, 2019 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zainfikrih/3b4e8b072f5f7bdc075eef51e60cc500 to your computer and use it in GitHub Desktop.
Save zainfikrih/3b4e8b072f5f7bdc075eef51e60cc500 to your computer and use it in GitHub Desktop.
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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment