1
2
3
4 package de.tivsource.page.entity.application;
5
6 import java.util.Date;
7
8 import javax.persistence.Column;
9 import javax.persistence.Entity;
10 import javax.persistence.FetchType;
11 import javax.persistence.Id;
12 import javax.persistence.JoinColumn;
13 import javax.persistence.ManyToOne;
14 import javax.persistence.Temporal;
15
16 import org.hibernate.envers.Audited;
17 import org.hibernate.search.annotations.DocumentId;
18
19
20
21
22
23 @Audited
24 @Entity
25 public class Education {
26
27
28
29
30
31
32 @Id
33 @DocumentId
34 @Column(name="uuid", unique=true, length=42)
35 private String uuid;
36
37 @Temporal(javax.persistence.TemporalType.TIMESTAMP)
38 private Date beginning;
39
40 @Temporal(javax.persistence.TemporalType.TIMESTAMP)
41 private Date ending;
42
43 private String kindOfSchool;
44
45 private String degree;
46
47 @ManyToOne(fetch = FetchType.LAZY)
48 @JoinColumn(name = "application_uuid")
49 private Application application;
50
51 public String getUuid() {
52 return uuid;
53 }
54
55 public void setUuid(String uuid) {
56 this.uuid = uuid;
57 }
58
59 public Date getBeginning() {
60 return beginning;
61 }
62
63 public void setBeginning(Date beginning) {
64 this.beginning = beginning;
65 }
66
67 public Date getEnding() {
68 return ending;
69 }
70
71 public void setEnding(Date ending) {
72 this.ending = ending;
73 }
74
75 public String getKindOfSchool() {
76 return kindOfSchool;
77 }
78
79 public void setKindOfSchool(String kindOfSchool) {
80 this.kindOfSchool = kindOfSchool;
81 }
82
83 public String getDegree() {
84 return degree;
85 }
86
87 public void setDegree(String degree) {
88 this.degree = degree;
89 }
90
91 public Application getApplication() {
92 return application;
93 }
94
95 public void setApplication(Application application) {
96 this.application = application;
97 }
98
99 }