File tree Expand file tree Collapse file tree 2 files changed +47
-11
lines changed
src/main/java/com/itacademy Expand file tree Collapse file tree 2 files changed +47
-11
lines changed Original file line number Diff line number Diff line change
1
+ package com .itacademy .CrudEmpleats .domain ;
2
+
3
+ public class Employee {
4
+
5
+ /*
6
+ * D'un treballador identifiquem el nom i la seva feina, estaria bé tenir un
7
+ * identificador únic per aquest treballador.
8
+ * Depenent de la feina s'assignarà un
9
+ * salari a l'empleat un cop es crea.
10
+ *
11
+ */
12
+
13
+ private int id ;
14
+ private String name ;
15
+ private String job ;
16
+
17
+ public Employee () {
18
+ }
19
+
20
+ public Employee (int id , String name , String job ) {
21
+ this .id = id ;
22
+ this .name = name ;
23
+ this .job = job ;
24
+ }
25
+
26
+ public int getId () {
27
+ return id ;
28
+ }
29
+ public void setId (int id ) {
30
+ this .id = id ;
31
+ }
32
+ public String getName () {
33
+ return name ;
34
+ }
35
+ public void setName (String name ) {
36
+ this .name = name ;
37
+ }
38
+ public String getJob () {
39
+ return job ;
40
+ }
41
+ public void setJob (String job ) {
42
+ this .job = job ;
43
+ }
44
+
45
+
46
+
47
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments