1
2
3
4
5
6
7
8
9 package com.hack23.cia.model.internal.application.system.impl;
10
11 import java.io.Serializable;
12 import java.util.Date;
13 import javax.persistence.Basic;
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.Table;
24 import javax.persistence.Temporal;
25 import javax.persistence.TemporalType;
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.XmlElement;
30 import javax.xml.bind.annotation.XmlSchemaType;
31 import javax.xml.bind.annotation.XmlType;
32 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
33 import com.hack23.cia.model.common.api.ModelObject;
34 import org.jvnet.jaxb2_commons.lang.Equals;
35 import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
36 import org.jvnet.jaxb2_commons.lang.HashCode;
37 import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
38 import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
39 import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
40 import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
41 import org.jvnet.jaxb2_commons.lang.ToString;
42 import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
43 import org.jvnet.jaxb2_commons.locator.ObjectLocator;
44 import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
45 import org.w3._2001.xmlschema.Adapter1;
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 @XmlAccessorType(XmlAccessType.FIELD)
79 @XmlType(name = "ApplicationConfiguration", propOrder = {
80 "modelObjectId",
81 "modelObjectVersion",
82 "configTitle",
83 "configDescription",
84 "configurationGroup",
85 "component",
86 "componentTitle",
87 "componentDescription",
88 "propertyId",
89 "propertyValue",
90 "createdDate",
91 "updatedDate"
92 })
93 @Entity(name = "ApplicationConfiguration")
94 @Table(name = "application_configuration")
95 @Inheritance(strategy = InheritanceType.JOINED)
96 public class ApplicationConfiguration
97 implements Serializable, ModelObject, Equals, HashCode, ToString
98 {
99
100 private final static long serialVersionUID = 1L;
101 protected Integer modelObjectId;
102 protected Integer modelObjectVersion;
103 protected String configTitle;
104 protected String configDescription;
105 @XmlSchemaType(name = "string")
106 protected ConfigurationGroup configurationGroup;
107 protected String component;
108 protected String componentTitle;
109 protected String componentDescription;
110 protected String propertyId;
111 protected String propertyValue;
112 @XmlElement(type = String.class)
113 @XmlJavaTypeAdapter(Adapter1 .class)
114 @XmlSchemaType(name = "dateTime")
115 protected Date createdDate;
116 @XmlElement(type = String.class)
117 @XmlJavaTypeAdapter(Adapter1 .class)
118 @XmlSchemaType(name = "dateTime")
119 protected Date updatedDate;
120 @XmlAttribute(name = "Hjid")
121 protected Long hjid;
122
123
124
125
126
127
128
129
130
131 @Basic
132 @Column(name = "MODEL_OBJECT_ID", precision = 10, scale = 0)
133 public Integer getModelObjectId() {
134 return modelObjectId;
135 }
136
137
138
139
140
141
142
143
144
145 public void setModelObjectId(Integer value) {
146 this.modelObjectId = value;
147 }
148
149
150
151
152
153
154
155
156
157 @Basic
158 @Column(name = "MODEL_OBJECT_VERSION", precision = 10, scale = 0)
159 public Integer getModelObjectVersion() {
160 return modelObjectVersion;
161 }
162
163
164
165
166
167
168
169
170
171 public void setModelObjectVersion(Integer value) {
172 this.modelObjectVersion = value;
173 }
174
175
176
177
178
179
180
181
182
183 @Basic
184 @Column(name = "CONFIG_TITLE", length = 255)
185 public String getConfigTitle() {
186 return configTitle;
187 }
188
189
190
191
192
193
194
195
196
197 public void setConfigTitle(String value) {
198 this.configTitle = value;
199 }
200
201
202
203
204
205
206
207
208
209 @Basic
210 @Column(name = "CONFIG_DESCRIPTION", length = 255)
211 public String getConfigDescription() {
212 return configDescription;
213 }
214
215
216
217
218
219
220
221
222
223 public void setConfigDescription(String value) {
224 this.configDescription = value;
225 }
226
227
228
229
230
231
232
233
234
235 @Basic
236 @Column(name = "CONFIGURATION_GROUP", length = 255)
237 @Enumerated(EnumType.STRING)
238 public ConfigurationGroup getConfigurationGroup() {
239 return configurationGroup;
240 }
241
242
243
244
245
246
247
248
249
250 public void setConfigurationGroup(ConfigurationGroup value) {
251 this.configurationGroup = value;
252 }
253
254
255
256
257
258
259
260
261
262 @Basic
263 @Column(name = "COMPONENT", length = 255)
264 public String getComponent() {
265 return component;
266 }
267
268
269
270
271
272
273
274
275
276 public void setComponent(String value) {
277 this.component = value;
278 }
279
280
281
282
283
284
285
286
287
288 @Basic
289 @Column(name = "COMPONENT_TITLE", length = 255)
290 public String getComponentTitle() {
291 return componentTitle;
292 }
293
294
295
296
297
298
299
300
301
302 public void setComponentTitle(String value) {
303 this.componentTitle = value;
304 }
305
306
307
308
309
310
311
312
313
314 @Basic
315 @Column(name = "COMPONENT_DESCRIPTION", length = 255)
316 public String getComponentDescription() {
317 return componentDescription;
318 }
319
320
321
322
323
324
325
326
327
328 public void setComponentDescription(String value) {
329 this.componentDescription = value;
330 }
331
332
333
334
335
336
337
338
339
340 @Basic
341 @Column(name = "PROPERTY_ID", length = 255)
342 public String getPropertyId() {
343 return propertyId;
344 }
345
346
347
348
349
350
351
352
353
354 public void setPropertyId(String value) {
355 this.propertyId = value;
356 }
357
358
359
360
361
362
363
364
365
366 @Basic
367 @Column(name = "PROPERTY_VALUE", length = 255)
368 public String getPropertyValue() {
369 return propertyValue;
370 }
371
372
373
374
375
376
377
378
379
380 public void setPropertyValue(String value) {
381 this.propertyValue = value;
382 }
383
384
385
386
387
388
389
390
391
392 @Basic
393 @Column(name = "CREATED_DATE")
394 @Temporal(TemporalType.TIMESTAMP)
395 public Date getCreatedDate() {
396 return createdDate;
397 }
398
399
400
401
402
403
404
405
406
407 public void setCreatedDate(Date value) {
408 this.createdDate = value;
409 }
410
411
412
413
414
415
416
417
418
419 @Basic
420 @Column(name = "UPDATED_DATE")
421 @Temporal(TemporalType.TIMESTAMP)
422 public Date getUpdatedDate() {
423 return updatedDate;
424 }
425
426
427
428
429
430
431
432
433
434 public void setUpdatedDate(Date value) {
435 this.updatedDate = value;
436 }
437
438 public ApplicationConfiguration withModelObjectId(Integer value) {
439 setModelObjectId(value);
440 return this;
441 }
442
443 public ApplicationConfiguration withModelObjectVersion(Integer value) {
444 setModelObjectVersion(value);
445 return this;
446 }
447
448 public ApplicationConfiguration withConfigTitle(String value) {
449 setConfigTitle(value);
450 return this;
451 }
452
453 public ApplicationConfiguration withConfigDescription(String value) {
454 setConfigDescription(value);
455 return this;
456 }
457
458 public ApplicationConfiguration withConfigurationGroup(ConfigurationGroup value) {
459 setConfigurationGroup(value);
460 return this;
461 }
462
463 public ApplicationConfiguration withComponent(String value) {
464 setComponent(value);
465 return this;
466 }
467
468 public ApplicationConfiguration withComponentTitle(String value) {
469 setComponentTitle(value);
470 return this;
471 }
472
473 public ApplicationConfiguration withComponentDescription(String value) {
474 setComponentDescription(value);
475 return this;
476 }
477
478 public ApplicationConfiguration withPropertyId(String value) {
479 setPropertyId(value);
480 return this;
481 }
482
483 public ApplicationConfiguration withPropertyValue(String value) {
484 setPropertyValue(value);
485 return this;
486 }
487
488 public ApplicationConfiguration withCreatedDate(Date value) {
489 setCreatedDate(value);
490 return this;
491 }
492
493 public ApplicationConfiguration withUpdatedDate(Date value) {
494 setUpdatedDate(value);
495 return this;
496 }
497
498 public String toString() {
499 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
500 final StringBuilder buffer = new StringBuilder();
501 append(null, buffer, strategy);
502 return buffer.toString();
503 }
504
505 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
506 strategy.appendStart(locator, this, buffer);
507 appendFields(locator, buffer, strategy);
508 strategy.appendEnd(locator, this, buffer);
509 return buffer;
510 }
511
512 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
513 {
514 Integer theModelObjectId;
515 theModelObjectId = this.getModelObjectId();
516 strategy.appendField(locator, this, "modelObjectId", buffer, theModelObjectId);
517 }
518 {
519 Integer theModelObjectVersion;
520 theModelObjectVersion = this.getModelObjectVersion();
521 strategy.appendField(locator, this, "modelObjectVersion", buffer, theModelObjectVersion);
522 }
523 {
524 String theConfigTitle;
525 theConfigTitle = this.getConfigTitle();
526 strategy.appendField(locator, this, "configTitle", buffer, theConfigTitle);
527 }
528 {
529 String theConfigDescription;
530 theConfigDescription = this.getConfigDescription();
531 strategy.appendField(locator, this, "configDescription", buffer, theConfigDescription);
532 }
533 {
534 ConfigurationGroup theConfigurationGroup;
535 theConfigurationGroup = this.getConfigurationGroup();
536 strategy.appendField(locator, this, "configurationGroup", buffer, theConfigurationGroup);
537 }
538 {
539 String theComponent;
540 theComponent = this.getComponent();
541 strategy.appendField(locator, this, "component", buffer, theComponent);
542 }
543 {
544 String theComponentTitle;
545 theComponentTitle = this.getComponentTitle();
546 strategy.appendField(locator, this, "componentTitle", buffer, theComponentTitle);
547 }
548 {
549 String theComponentDescription;
550 theComponentDescription = this.getComponentDescription();
551 strategy.appendField(locator, this, "componentDescription", buffer, theComponentDescription);
552 }
553 {
554 String thePropertyId;
555 thePropertyId = this.getPropertyId();
556 strategy.appendField(locator, this, "propertyId", buffer, thePropertyId);
557 }
558 {
559 String thePropertyValue;
560 thePropertyValue = this.getPropertyValue();
561 strategy.appendField(locator, this, "propertyValue", buffer, thePropertyValue);
562 }
563 {
564 Date theCreatedDate;
565 theCreatedDate = this.getCreatedDate();
566 strategy.appendField(locator, this, "createdDate", buffer, theCreatedDate);
567 }
568 {
569 Date theUpdatedDate;
570 theUpdatedDate = this.getUpdatedDate();
571 strategy.appendField(locator, this, "updatedDate", buffer, theUpdatedDate);
572 }
573 return buffer;
574 }
575
576
577
578
579
580
581
582
583
584 @Id
585 @Column(name = "HJID")
586 @GeneratedValue(strategy = GenerationType.AUTO)
587 public Long getHjid() {
588 return hjid;
589 }
590
591
592
593
594
595
596
597
598
599 public void setHjid(Long value) {
600 this.hjid = value;
601 }
602
603 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
604 if ((object == null)||(this.getClass()!= object.getClass())) {
605 return false;
606 }
607 if (this == object) {
608 return true;
609 }
610 final ApplicationConfiguration that = ((ApplicationConfiguration) object);
611 {
612 Integer lhsModelObjectId;
613 lhsModelObjectId = this.getModelObjectId();
614 Integer rhsModelObjectId;
615 rhsModelObjectId = that.getModelObjectId();
616 if (!strategy.equals(LocatorUtils.property(thisLocator, "modelObjectId", lhsModelObjectId), LocatorUtils.property(thatLocator, "modelObjectId", rhsModelObjectId), lhsModelObjectId, rhsModelObjectId)) {
617 return false;
618 }
619 }
620 {
621 Integer lhsModelObjectVersion;
622 lhsModelObjectVersion = this.getModelObjectVersion();
623 Integer rhsModelObjectVersion;
624 rhsModelObjectVersion = that.getModelObjectVersion();
625 if (!strategy.equals(LocatorUtils.property(thisLocator, "modelObjectVersion", lhsModelObjectVersion), LocatorUtils.property(thatLocator, "modelObjectVersion", rhsModelObjectVersion), lhsModelObjectVersion, rhsModelObjectVersion)) {
626 return false;
627 }
628 }
629 {
630 String lhsConfigTitle;
631 lhsConfigTitle = this.getConfigTitle();
632 String rhsConfigTitle;
633 rhsConfigTitle = that.getConfigTitle();
634 if (!strategy.equals(LocatorUtils.property(thisLocator, "configTitle", lhsConfigTitle), LocatorUtils.property(thatLocator, "configTitle", rhsConfigTitle), lhsConfigTitle, rhsConfigTitle)) {
635 return false;
636 }
637 }
638 {
639 String lhsConfigDescription;
640 lhsConfigDescription = this.getConfigDescription();
641 String rhsConfigDescription;
642 rhsConfigDescription = that.getConfigDescription();
643 if (!strategy.equals(LocatorUtils.property(thisLocator, "configDescription", lhsConfigDescription), LocatorUtils.property(thatLocator, "configDescription", rhsConfigDescription), lhsConfigDescription, rhsConfigDescription)) {
644 return false;
645 }
646 }
647 {
648 ConfigurationGroup lhsConfigurationGroup;
649 lhsConfigurationGroup = this.getConfigurationGroup();
650 ConfigurationGroup rhsConfigurationGroup;
651 rhsConfigurationGroup = that.getConfigurationGroup();
652 if (!strategy.equals(LocatorUtils.property(thisLocator, "configurationGroup", lhsConfigurationGroup), LocatorUtils.property(thatLocator, "configurationGroup", rhsConfigurationGroup), lhsConfigurationGroup, rhsConfigurationGroup)) {
653 return false;
654 }
655 }
656 {
657 String lhsComponent;
658 lhsComponent = this.getComponent();
659 String rhsComponent;
660 rhsComponent = that.getComponent();
661 if (!strategy.equals(LocatorUtils.property(thisLocator, "component", lhsComponent), LocatorUtils.property(thatLocator, "component", rhsComponent), lhsComponent, rhsComponent)) {
662 return false;
663 }
664 }
665 {
666 String lhsComponentTitle;
667 lhsComponentTitle = this.getComponentTitle();
668 String rhsComponentTitle;
669 rhsComponentTitle = that.getComponentTitle();
670 if (!strategy.equals(LocatorUtils.property(thisLocator, "componentTitle", lhsComponentTitle), LocatorUtils.property(thatLocator, "componentTitle", rhsComponentTitle), lhsComponentTitle, rhsComponentTitle)) {
671 return false;
672 }
673 }
674 {
675 String lhsComponentDescription;
676 lhsComponentDescription = this.getComponentDescription();
677 String rhsComponentDescription;
678 rhsComponentDescription = that.getComponentDescription();
679 if (!strategy.equals(LocatorUtils.property(thisLocator, "componentDescription", lhsComponentDescription), LocatorUtils.property(thatLocator, "componentDescription", rhsComponentDescription), lhsComponentDescription, rhsComponentDescription)) {
680 return false;
681 }
682 }
683 {
684 String lhsPropertyId;
685 lhsPropertyId = this.getPropertyId();
686 String rhsPropertyId;
687 rhsPropertyId = that.getPropertyId();
688 if (!strategy.equals(LocatorUtils.property(thisLocator, "propertyId", lhsPropertyId), LocatorUtils.property(thatLocator, "propertyId", rhsPropertyId), lhsPropertyId, rhsPropertyId)) {
689 return false;
690 }
691 }
692 {
693 String lhsPropertyValue;
694 lhsPropertyValue = this.getPropertyValue();
695 String rhsPropertyValue;
696 rhsPropertyValue = that.getPropertyValue();
697 if (!strategy.equals(LocatorUtils.property(thisLocator, "propertyValue", lhsPropertyValue), LocatorUtils.property(thatLocator, "propertyValue", rhsPropertyValue), lhsPropertyValue, rhsPropertyValue)) {
698 return false;
699 }
700 }
701 {
702 Date lhsCreatedDate;
703 lhsCreatedDate = this.getCreatedDate();
704 Date rhsCreatedDate;
705 rhsCreatedDate = that.getCreatedDate();
706 if (!strategy.equals(LocatorUtils.property(thisLocator, "createdDate", lhsCreatedDate), LocatorUtils.property(thatLocator, "createdDate", rhsCreatedDate), lhsCreatedDate, rhsCreatedDate)) {
707 return false;
708 }
709 }
710 {
711 Date lhsUpdatedDate;
712 lhsUpdatedDate = this.getUpdatedDate();
713 Date rhsUpdatedDate;
714 rhsUpdatedDate = that.getUpdatedDate();
715 if (!strategy.equals(LocatorUtils.property(thisLocator, "updatedDate", lhsUpdatedDate), LocatorUtils.property(thatLocator, "updatedDate", rhsUpdatedDate), lhsUpdatedDate, rhsUpdatedDate)) {
716 return false;
717 }
718 }
719 return true;
720 }
721
722 public boolean equals(Object object) {
723 final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
724 return equals(null, null, object, strategy);
725 }
726
727 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
728 int currentHashCode = 1;
729 {
730 Integer theModelObjectId;
731 theModelObjectId = this.getModelObjectId();
732 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modelObjectId", theModelObjectId), currentHashCode, theModelObjectId);
733 }
734 {
735 Integer theModelObjectVersion;
736 theModelObjectVersion = this.getModelObjectVersion();
737 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modelObjectVersion", theModelObjectVersion), currentHashCode, theModelObjectVersion);
738 }
739 {
740 String theConfigTitle;
741 theConfigTitle = this.getConfigTitle();
742 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "configTitle", theConfigTitle), currentHashCode, theConfigTitle);
743 }
744 {
745 String theConfigDescription;
746 theConfigDescription = this.getConfigDescription();
747 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "configDescription", theConfigDescription), currentHashCode, theConfigDescription);
748 }
749 {
750 ConfigurationGroup theConfigurationGroup;
751 theConfigurationGroup = this.getConfigurationGroup();
752 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "configurationGroup", theConfigurationGroup), currentHashCode, theConfigurationGroup);
753 }
754 {
755 String theComponent;
756 theComponent = this.getComponent();
757 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "component", theComponent), currentHashCode, theComponent);
758 }
759 {
760 String theComponentTitle;
761 theComponentTitle = this.getComponentTitle();
762 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "componentTitle", theComponentTitle), currentHashCode, theComponentTitle);
763 }
764 {
765 String theComponentDescription;
766 theComponentDescription = this.getComponentDescription();
767 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "componentDescription", theComponentDescription), currentHashCode, theComponentDescription);
768 }
769 {
770 String thePropertyId;
771 thePropertyId = this.getPropertyId();
772 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "propertyId", thePropertyId), currentHashCode, thePropertyId);
773 }
774 {
775 String thePropertyValue;
776 thePropertyValue = this.getPropertyValue();
777 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "propertyValue", thePropertyValue), currentHashCode, thePropertyValue);
778 }
779 {
780 Date theCreatedDate;
781 theCreatedDate = this.getCreatedDate();
782 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createdDate", theCreatedDate), currentHashCode, theCreatedDate);
783 }
784 {
785 Date theUpdatedDate;
786 theUpdatedDate = this.getUpdatedDate();
787 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "updatedDate", theUpdatedDate), currentHashCode, theUpdatedDate);
788 }
789 return currentHashCode;
790 }
791
792 public int hashCode() {
793 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
794 return this.hashCode(null, strategy);
795 }
796
797 }