-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathHealthCheckConfiguration.java
120 lines (84 loc) · 2.8 KB
/
HealthCheckConfiguration.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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package de.diedavids.cuba.healthcheck.entity;
import com.haulmont.chile.core.annotations.NamePattern;
import com.haulmont.cuba.core.entity.StandardEntity;
import com.haulmont.cuba.core.entity.annotation.Lookup;
import com.haulmont.cuba.core.entity.annotation.LookupType;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
@DiscriminatorValue("GENERAL")
@DiscriminatorColumn(name = "DTYPE", discriminatorType = DiscriminatorType.STRING)
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@NamePattern("%s (%s)|name,active")
@Table(name = "DDCHC_HC_CONFIGURATION")
@Entity(name = "ddchc$HealthCheckConfiguration")
public class HealthCheckConfiguration extends StandardEntity {
private static final long serialVersionUID = 5113940016811422152L;
@NotNull
@Column(name = "TYPE_", nullable = false)
protected String type;
@Column(name = "ACTIVE")
protected Boolean active;
@NotNull
@Column(name = "NAME", nullable = false)
protected String name;
@Column(name = "CODE")
protected String code;
@Column(name = "DESCRIPTION", length = 4000)
protected String description;
@Column(name = "SOLUTION_INFORMATION", length = 4000)
protected String solutionInformation;
@Lookup(type = LookupType.DROPDOWN, actions = {"lookup", "clear"})
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "CATEGORY_ID")
protected HealthCheckCategory category;
@Column(name = "INITIAL_")
protected Boolean initial;
public void setInitial(Boolean initial) {
this.initial = initial;
}
public Boolean getInitial() {
return initial;
}
public void setCategory(HealthCheckCategory category) {
this.category = category;
}
public HealthCheckCategory getCategory() {
return category;
}
public void setCode(String code) {
this.code = code;
}
public String getCode() {
return code;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setType(HealthCheckType type) {
this.type = type == null ? null : type.getId();
}
public HealthCheckType getType() {
return type == null ? null : HealthCheckType.fromId(type);
}
public void setDescription(String description) {
this.description = description;
}
public String getDescription() {
return description;
}
public void setSolutionInformation(String solutionInformation) {
this.solutionInformation = solutionInformation;
}
public String getSolutionInformation() {
return solutionInformation;
}
public void setActive(Boolean active) {
this.active = active;
}
public Boolean getActive() {
return active;
}
}