-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmpl.java
More file actions
75 lines (58 loc) · 1.34 KB
/
Copy pathEmpl.java
File metadata and controls
75 lines (58 loc) · 1.34 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
package m;
/**
* Created by Bettayeb on 5/4/2017.
*/
public class Empl {
private int id;
private String fname;
private String lname;
private Dept dept;
private int id_dept;
private String label_dept;
public Empl(){}
public Empl(String fname, String lname, Dept dept) {
this.fname = fname;
this.lname = lname;
this.dept = dept;
this.id_dept=dept.getId();
this.label_dept=dept.getLabel();
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getFname() {
return fname;
}
public void setFname(String fname) {
this.fname = fname;
}
public String getLname() {
return lname;
}
public void setLname(String lname) {
this.lname = lname;
}
public Dept getDept() {
return dept;
}
public void setDept(Dept dept) {
this.dept = dept;
this.id_dept=dept.getId();
this.label_dept=dept.getLabel();
}
public int getId_dept() {
return id_dept;
}
public void setId_dept(int id_dept) {
this.id_dept = id_dept;
}
public String getLabel_dept() {
return label_dept;
}
public void setLabel_dept(String label_dept) {
this.label_dept = label_dept;
}
}