Skip to content

Instantly share code, notes, and snippets.

@ankitdubey021
Created July 16, 2019 09:24
Embed
What would you like to do?
package dao;
import java.util.Date;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "student_master")
public class Student{
@PrimaryKey(autoGenerate = true)
private int sno;
private int rollno;
private String name;
private Date dob;
public int getSno() {
return sno;
}
public void setSno(int sno) {
this.sno = sno;
}
public int getRollno() {
return rollno;
}
public void setRollno(int rollno) {
this.rollno = rollno;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getDob() {
return dob;
}
public void setDob(Date dob) {
this.dob = dob;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment