Skip to content

Instantly share code, notes, and snippets.

Created July 16, 2019 09:24
What would you like to do?
package dao;
import java.util.Date;
@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) { = 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