1
2
3
4
5
6
7
8
9 package com.hack23.cia.model.internal.application.view.impl;
10
11 import java.io.Serializable;
12 import javax.persistence.Basic;
13 import javax.persistence.CascadeType;
14 import javax.persistence.Column;
15 import javax.persistence.Entity;
16 import javax.persistence.EnumType;
17 import javax.persistence.Enumerated;
18 import javax.persistence.GeneratedValue;
19 import javax.persistence.GenerationType;
20 import javax.persistence.Id;
21 import javax.persistence.Inheritance;
22 import javax.persistence.InheritanceType;
23 import javax.persistence.JoinColumn;
24 import javax.persistence.ManyToOne;
25 import javax.persistence.Table;
26 import javax.xml.bind.annotation.XmlAccessType;
27 import javax.xml.bind.annotation.XmlAccessorType;
28 import javax.xml.bind.annotation.XmlAttribute;
29 import javax.xml.bind.annotation.XmlSchemaType;
30 import javax.xml.bind.annotation.XmlType;
31 import com.hack23.cia.model.common.api.ModelObject;
32 import org.jvnet.jaxb2_commons.lang.Equals;
33 import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
34 import org.jvnet.jaxb2_commons.lang.HashCode;
35 import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
36 import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
37 import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
38 import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
39 import org.jvnet.jaxb2_commons.lang.ToString;
40 import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
41 import org.jvnet.jaxb2_commons.locator.ObjectLocator;
42 import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
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 @XmlAccessorType(XmlAccessType.FIELD)
70 @XmlType(name = "ApplicationView", propOrder = {
71 "perspective",
72 "targetProfile",
73 "performanceIndicators",
74 "operationalInformation",
75 "qualityAssurance",
76 "dataSourceInformation"
77 })
78 @Entity(name = "ApplicationView")
79 @Table(name = "APPLICATION_VIEW")
80 @Inheritance(strategy = InheritanceType.JOINED)
81 public class ApplicationView
82 implements Serializable, ModelObject, Equals, HashCode, ToString
83 {
84
85 private final static long serialVersionUID = 1L;
86 @XmlSchemaType(name = "string")
87 protected ViewPerspective perspective;
88 protected TargetProfileContent targetProfile;
89 protected PerformanceIndicatorContent performanceIndicators;
90 protected OperationalInformationContent operationalInformation;
91 protected QualityAssuranceContent qualityAssurance;
92 protected DataSourceContent dataSourceInformation;
93 @XmlAttribute(name = "Hjid")
94 protected Long hjid;
95
96
97
98
99
100
101
102
103
104 @Basic
105 @Column(name = "PERSPECTIVE", length = 255)
106 @Enumerated(EnumType.STRING)
107 public ViewPerspective getPerspective() {
108 return perspective;
109 }
110
111
112
113
114
115
116
117
118
119 public void setPerspective(ViewPerspective value) {
120 this.perspective = value;
121 }
122
123
124
125
126
127
128
129
130
131 @ManyToOne(targetEntity = TargetProfileContent.class, cascade = {
132 CascadeType.ALL
133 })
134 @JoinColumn(name = "TARGET_PROFILE_APPLICATION_V_0")
135 public TargetProfileContent getTargetProfile() {
136 return targetProfile;
137 }
138
139
140
141
142
143
144
145
146
147 public void setTargetProfile(TargetProfileContent value) {
148 this.targetProfile = value;
149 }
150
151
152
153
154
155
156
157
158
159 @ManyToOne(targetEntity = PerformanceIndicatorContent.class, cascade = {
160 CascadeType.ALL
161 })
162 @JoinColumn(name = "PERFORMANCE_INDICATORS_APPLI_0")
163 public PerformanceIndicatorContent getPerformanceIndicators() {
164 return performanceIndicators;
165 }
166
167
168
169
170
171
172
173
174
175 public void setPerformanceIndicators(PerformanceIndicatorContent value) {
176 this.performanceIndicators = value;
177 }
178
179
180
181
182
183
184
185
186
187 @ManyToOne(targetEntity = OperationalInformationContent.class, cascade = {
188 CascadeType.ALL
189 })
190 @JoinColumn(name = "OPERATIONAL_INFORMATION_APPL_0")
191 public OperationalInformationContent getOperationalInformation() {
192 return operationalInformation;
193 }
194
195
196
197
198
199
200
201
202
203 public void setOperationalInformation(OperationalInformationContent value) {
204 this.operationalInformation = value;
205 }
206
207
208
209
210
211
212
213
214
215 @ManyToOne(targetEntity = QualityAssuranceContent.class, cascade = {
216 CascadeType.ALL
217 })
218 @JoinColumn(name = "QUALITY_ASSURANCE_APPLICATIO_0")
219 public QualityAssuranceContent getQualityAssurance() {
220 return qualityAssurance;
221 }
222
223
224
225
226
227
228
229
230
231 public void setQualityAssurance(QualityAssuranceContent value) {
232 this.qualityAssurance = value;
233 }
234
235
236
237
238
239
240
241
242
243 @ManyToOne(targetEntity = DataSourceContent.class, cascade = {
244 CascadeType.ALL
245 })
246 @JoinColumn(name = "DATA_SOURCE_INFORMATION_APPL_0")
247 public DataSourceContent getDataSourceInformation() {
248 return dataSourceInformation;
249 }
250
251
252
253
254
255
256
257
258
259 public void setDataSourceInformation(DataSourceContent value) {
260 this.dataSourceInformation = value;
261 }
262
263 public ApplicationView withPerspective(ViewPerspective value) {
264 setPerspective(value);
265 return this;
266 }
267
268 public ApplicationView withTargetProfile(TargetProfileContent value) {
269 setTargetProfile(value);
270 return this;
271 }
272
273 public ApplicationView withPerformanceIndicators(PerformanceIndicatorContent value) {
274 setPerformanceIndicators(value);
275 return this;
276 }
277
278 public ApplicationView withOperationalInformation(OperationalInformationContent value) {
279 setOperationalInformation(value);
280 return this;
281 }
282
283 public ApplicationView withQualityAssurance(QualityAssuranceContent value) {
284 setQualityAssurance(value);
285 return this;
286 }
287
288 public ApplicationView withDataSourceInformation(DataSourceContent value) {
289 setDataSourceInformation(value);
290 return this;
291 }
292
293 public String toString() {
294 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
295 final StringBuilder buffer = new StringBuilder();
296 append(null, buffer, strategy);
297 return buffer.toString();
298 }
299
300 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
301 strategy.appendStart(locator, this, buffer);
302 appendFields(locator, buffer, strategy);
303 strategy.appendEnd(locator, this, buffer);
304 return buffer;
305 }
306
307 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
308 {
309 ViewPerspective thePerspective;
310 thePerspective = this.getPerspective();
311 strategy.appendField(locator, this, "perspective", buffer, thePerspective);
312 }
313 {
314 TargetProfileContent theTargetProfile;
315 theTargetProfile = this.getTargetProfile();
316 strategy.appendField(locator, this, "targetProfile", buffer, theTargetProfile);
317 }
318 {
319 PerformanceIndicatorContent thePerformanceIndicators;
320 thePerformanceIndicators = this.getPerformanceIndicators();
321 strategy.appendField(locator, this, "performanceIndicators", buffer, thePerformanceIndicators);
322 }
323 {
324 OperationalInformationContent theOperationalInformation;
325 theOperationalInformation = this.getOperationalInformation();
326 strategy.appendField(locator, this, "operationalInformation", buffer, theOperationalInformation);
327 }
328 {
329 QualityAssuranceContent theQualityAssurance;
330 theQualityAssurance = this.getQualityAssurance();
331 strategy.appendField(locator, this, "qualityAssurance", buffer, theQualityAssurance);
332 }
333 {
334 DataSourceContent theDataSourceInformation;
335 theDataSourceInformation = this.getDataSourceInformation();
336 strategy.appendField(locator, this, "dataSourceInformation", buffer, theDataSourceInformation);
337 }
338 return buffer;
339 }
340
341
342
343
344
345
346
347
348
349 @Id
350 @Column(name = "HJID")
351 @GeneratedValue(strategy = GenerationType.AUTO)
352 public Long getHjid() {
353 return hjid;
354 }
355
356
357
358
359
360
361
362
363
364 public void setHjid(Long value) {
365 this.hjid = value;
366 }
367
368 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
369 if ((object == null)||(this.getClass()!= object.getClass())) {
370 return false;
371 }
372 if (this == object) {
373 return true;
374 }
375 final ApplicationView that = ((ApplicationView) object);
376 {
377 ViewPerspective lhsPerspective;
378 lhsPerspective = this.getPerspective();
379 ViewPerspective rhsPerspective;
380 rhsPerspective = that.getPerspective();
381 if (!strategy.equals(LocatorUtils.property(thisLocator, "perspective", lhsPerspective), LocatorUtils.property(thatLocator, "perspective", rhsPerspective), lhsPerspective, rhsPerspective)) {
382 return false;
383 }
384 }
385 {
386 TargetProfileContent lhsTargetProfile;
387 lhsTargetProfile = this.getTargetProfile();
388 TargetProfileContent rhsTargetProfile;
389 rhsTargetProfile = that.getTargetProfile();
390 if (!strategy.equals(LocatorUtils.property(thisLocator, "targetProfile", lhsTargetProfile), LocatorUtils.property(thatLocator, "targetProfile", rhsTargetProfile), lhsTargetProfile, rhsTargetProfile)) {
391 return false;
392 }
393 }
394 {
395 PerformanceIndicatorContent lhsPerformanceIndicators;
396 lhsPerformanceIndicators = this.getPerformanceIndicators();
397 PerformanceIndicatorContent rhsPerformanceIndicators;
398 rhsPerformanceIndicators = that.getPerformanceIndicators();
399 if (!strategy.equals(LocatorUtils.property(thisLocator, "performanceIndicators", lhsPerformanceIndicators), LocatorUtils.property(thatLocator, "performanceIndicators", rhsPerformanceIndicators), lhsPerformanceIndicators, rhsPerformanceIndicators)) {
400 return false;
401 }
402 }
403 {
404 OperationalInformationContent lhsOperationalInformation;
405 lhsOperationalInformation = this.getOperationalInformation();
406 OperationalInformationContent rhsOperationalInformation;
407 rhsOperationalInformation = that.getOperationalInformation();
408 if (!strategy.equals(LocatorUtils.property(thisLocator, "operationalInformation", lhsOperationalInformation), LocatorUtils.property(thatLocator, "operationalInformation", rhsOperationalInformation), lhsOperationalInformation, rhsOperationalInformation)) {
409 return false;
410 }
411 }
412 {
413 QualityAssuranceContent lhsQualityAssurance;
414 lhsQualityAssurance = this.getQualityAssurance();
415 QualityAssuranceContent rhsQualityAssurance;
416 rhsQualityAssurance = that.getQualityAssurance();
417 if (!strategy.equals(LocatorUtils.property(thisLocator, "qualityAssurance", lhsQualityAssurance), LocatorUtils.property(thatLocator, "qualityAssurance", rhsQualityAssurance), lhsQualityAssurance, rhsQualityAssurance)) {
418 return false;
419 }
420 }
421 {
422 DataSourceContent lhsDataSourceInformation;
423 lhsDataSourceInformation = this.getDataSourceInformation();
424 DataSourceContent rhsDataSourceInformation;
425 rhsDataSourceInformation = that.getDataSourceInformation();
426 if (!strategy.equals(LocatorUtils.property(thisLocator, "dataSourceInformation", lhsDataSourceInformation), LocatorUtils.property(thatLocator, "dataSourceInformation", rhsDataSourceInformation), lhsDataSourceInformation, rhsDataSourceInformation)) {
427 return false;
428 }
429 }
430 return true;
431 }
432
433 public boolean equals(Object object) {
434 final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
435 return equals(null, null, object, strategy);
436 }
437
438 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
439 int currentHashCode = 1;
440 {
441 ViewPerspective thePerspective;
442 thePerspective = this.getPerspective();
443 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "perspective", thePerspective), currentHashCode, thePerspective);
444 }
445 {
446 TargetProfileContent theTargetProfile;
447 theTargetProfile = this.getTargetProfile();
448 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "targetProfile", theTargetProfile), currentHashCode, theTargetProfile);
449 }
450 {
451 PerformanceIndicatorContent thePerformanceIndicators;
452 thePerformanceIndicators = this.getPerformanceIndicators();
453 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "performanceIndicators", thePerformanceIndicators), currentHashCode, thePerformanceIndicators);
454 }
455 {
456 OperationalInformationContent theOperationalInformation;
457 theOperationalInformation = this.getOperationalInformation();
458 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "operationalInformation", theOperationalInformation), currentHashCode, theOperationalInformation);
459 }
460 {
461 QualityAssuranceContent theQualityAssurance;
462 theQualityAssurance = this.getQualityAssurance();
463 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "qualityAssurance", theQualityAssurance), currentHashCode, theQualityAssurance);
464 }
465 {
466 DataSourceContent theDataSourceInformation;
467 theDataSourceInformation = this.getDataSourceInformation();
468 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dataSourceInformation", theDataSourceInformation), currentHashCode, theDataSourceInformation);
469 }
470 return currentHashCode;
471 }
472
473 public int hashCode() {
474 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
475 return this.hashCode(null, strategy);
476 }
477
478 }