Created
September 22, 2019 11:56
-
-
Save zainfikrih/3b4e8b072f5f7bdc075eef51e60cc500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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