-
Notifications
You must be signed in to change notification settings - Fork 0
/
Employee.java
46 lines (40 loc) · 1.07 KB
/
Employee.java
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
package hibernateExample;
/*
*This java class sets up our object that our application can manipulate and be used
*to update the database. In this case, our "Employee" has 5 characteristics.
*An id, a first name, a last name, a middle initial, and a position in the company.
*/
public class Employee {
private int id;
private String firstName,lastName, middleInitial, position;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getMiddleInitial() {
return middleInitial;
}
public void setMiddleInitial(String middleInitial) {
this.middleInitial = middleInitial;
}
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
}