-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStudent.java
More file actions
130 lines (104 loc) · 2.44 KB
/
Student.java
File metadata and controls
130 lines (104 loc) · 2.44 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package com.ProjectStudent.CollegeWebApp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity(name="student")
public class Student {
@Id
@Column(name="roll")
int roll;
@Column(name="name")
String name;
@Column(name="father")
String father;
@Column(name="department")
String department;
@Column(name="password")
String password;
@Column(name="dob")
String dob;
@Column(name="gender")
String gender;
@Column(name="residence")
String residence;
@Column(name="fees")
int fees;
public Student() {
super();
// TODO Auto-generated constructor stub
}
public Student(int roll, String name, String father, String department, String password, String dob,
String gender, String residence, int fees) {
super();
this.roll = roll;
this.name = name;
this.father = father;
this.department = department;
this.password = password;
this.dob = dob;
this.gender = gender;
this.residence = residence;
this.fees = fees;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getRoll() {
return roll;
}
public void setRoll(int roll) {
this.roll = roll;
}
public String getFather() {
return father;
}
public void setFather(String father) {
this.father = father;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getDob() {
return dob;
}
public void setDob(String dob) {
this.dob = dob;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getResidence() {
return residence;
}
public void setResidence(String residence) {
this.residence = residence;
}
public int getFees() {
return fees;
}
public void setFees(int fees) {
this.fees = fees;
}
public String getDepartment() {
return department;
}
public void setDepartment(String department) {
this.department = department;
}
@Override
public String toString() {
return "Student [roll=" + roll + ", name=" + name + ", father=" + father + ", department=" + department
+ ", password=" + password + ", dob=" + dob + ", gender=" + gender
+ ", residence=" + residence + ", fees=" + fees + "]";
}
}