-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatient.java
More file actions
49 lines (47 loc) · 1.03 KB
/
Copy pathpatient.java
File metadata and controls
49 lines (47 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="patient")
public class patient {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private int patientid;
public int getPatientid() {
return patientid;
}
public void setPatientid(int patientid) {
this.patientid = patientid;
}
private String name;
private String email;
private long mobile;
private String password;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public long getMobile() {
return mobile;
}
public void setMobile(long mobile) {
this.mobile = mobile;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}