Created
July 16, 2019 09:24
-
-
Save ankitdubey021/7aebbc950fd29d0d52e417185677f58b 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 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