-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEmployee.java
50 lines (41 loc) · 1.15 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
47
48
49
50
package com.example.app.model;
import javax.persistence.Column;
import javax.persistence.Entity;
//import javax.persistence.GeneratedValue;
//import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="employee_information")
public class Employee{
@Id
// @GeneratedValue(strategy = GenerationType.AUTO)
@Column(name="employee_number")
public int employeenum;
@Column(name="employee_first_name")
public String firstname;
@Column(name="employee_last_name")
public String lastname;
public int getEmployeenum() {
return employeenum;
}
public void setEmployeeNum(int employeenum) {
this.employeenum = employeenum;
}
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;
}
@Override
public String toString() {
return "Employee [employeeNum=" + employeenum + ", firstname=" + firstname + ", lastname=" + lastname + "]";
}
}