-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdmin.java
More file actions
102 lines (77 loc) · 1.84 KB
/
Admin.java
File metadata and controls
102 lines (77 loc) · 1.84 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package com.ProjectStudent.CollegeWebApp;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity(name="admin")
public class Admin {
@Id
String username;
String name;
String location;
int phnno;
String gender;
String password;
@OneToMany(targetEntity=Student.class)
List<Student> list;
public List<Student> getList() {
return list;
}
public void setList(List<Student> list) {
this.list = list;
}
public Admin() {
super();
// TODO Auto-generated constructor stub
}
public Admin(String username, String name, String location, int phnno, String gender, String password) {
super();
this.username = username;
this.name = name;
this.location = location;
this.phnno = phnno;
this.gender = gender;
this.password = password;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public int getPhnno() {
return phnno;
}
public void setPhnno(int phnno) {
this.phnno = phnno;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "Admin [username=" + username + ", name=" + name + ", location=" + location + ", phnno=" + phnno
+ ", gender=" + gender + ", password=" + password + "]";
}
}