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 @XmlAccessorType(XmlAccessType.FIELD)
78 @XmlType(name = "LanguageContentData", propOrder = {
79 "modelObjectId",
80 "modelObjectVersion",
81 "fromLanguage",
82 "toLanguage",
83 "createdDate",
84 "keyGroup",
85 "locationContext",
86 "lastModifiedDate",
87 "refKey",
88 "languageValue",
89 "languageContentType"
90 })
91 @Entity(name = "LanguageContentData")
92 @Table(name = "LANGUAGE_CONTENT_DATA")
93 @Inheritance(strategy = InheritanceType.JOINED)
94 public class LanguageContentData
95 implements Serializable, ModelObject, Equals, HashCode, ToString
96 {
97
98 private final static long serialVersionUID = 1L;
99 protected Integer modelObjectId;
100 protected Integer modelObjectVersion;
101 protected String fromLanguage;
102 protected String toLanguage;
103 @XmlElement(type = String.class)
104 @XmlJavaTypeAdapter(Adapter1 .class)
105 @XmlSchemaType(name = "dateTime")
106 protected Date createdDate;
107 protected String keyGroup;
108 protected String locationContext;
109 @XmlElement(type = String.class)
110 @XmlJavaTypeAdapter(Adapter1 .class)
111 @XmlSchemaType(name = "dateTime")
112 protected Date lastModifiedDate;
113 protected String refKey;
114 protected String languageValue;
115 @XmlSchemaType(name = "string")
116 protected LanguageContentType languageContentType;
117 @XmlAttribute(name = "Hjid")
118 protected Long hjid;
119
120
121
122
123
124
125
126
127
128 @Basic
129 @Column(name = "MODEL_OBJECT_ID", precision = 10, scale = 0)
130 public Integer getModelObjectId() {
131 return modelObjectId;
132 }
133
134
135
136
137
138
139
140
141
142 public void setModelObjectId(Integer value) {
143 this.modelObjectId = value;
144 }
145
146
147
148
149
150
151
152
153
154 @Basic
155 @Column(name = "MODEL_OBJECT_VERSION", precision = 10, scale = 0)
156 public Integer getModelObjectVersion() {
157 return modelObjectVersion;
158 }
159
160
161
162
163
164
165
166
167
168 public void setModelObjectVersion(Integer value) {
169 this.modelObjectVersion = value;
170 }
171
172
173
174
175
176
177
178
179
180 @Basic
181 @Column(name = "FROM_LANGUAGE", length = 255)
182 public String getFromLanguage() {
183 return fromLanguage;
184 }
185
186
187
188
189
190
191
192
193
194 public void setFromLanguage(String value) {
195 this.fromLanguage = value;
196 }
197
198
199
200
201
202
203
204
205
206 @Basic
207 @Column(name = "TO_LANGUAGE", length = 255)
208 public String getToLanguage() {
209 return toLanguage;
210 }
211
212
213
214
215
216
217
218
219
220 public void setToLanguage(String value) {
221 this.toLanguage = value;
222 }
223
224
225
226
227
228
229
230
231
232 @Basic
233 @Column(name = "CREATED_DATE")
234 @Temporal(TemporalType.TIMESTAMP)
235 public Date getCreatedDate() {
236 return createdDate;
237 }
238
239
240
241
242
243
244
245
246
247 public void setCreatedDate(Date value) {
248 this.createdDate = value;
249 }
250
251
252
253
254
255
256
257
258
259 @Basic
260 @Column(name = "KEY_GROUP", length = 255)
261 public String getKeyGroup() {
262 return keyGroup;
263 }
264
265
266
267
268
269
270
271
272
273 public void setKeyGroup(String value) {
274 this.keyGroup = value;
275 }
276
277
278
279
280
281
282
283
284
285 @Basic
286 @Column(name = "LOCATION_CONTEXT", length = 255)
287 public String getLocationContext() {
288 return locationContext;
289 }
290
291
292
293
294
295
296
297
298
299 public void setLocationContext(String value) {
300 this.locationContext = value;
301 }
302
303
304
305
306
307
308
309
310
311 @Basic
312 @Column(name = "LAST_MODIFIED_DATE")
313 @Temporal(TemporalType.TIMESTAMP)
314 public Date getLastModifiedDate() {
315 return lastModifiedDate;
316 }
317
318
319
320
321
322
323
324
325
326 public void setLastModifiedDate(Date value) {
327 this.lastModifiedDate = value;
328 }
329
330
331
332
333
334
335
336
337
338 @Basic
339 @Column(name = "REF_KEY", length = 10485760)
340 public String getRefKey() {
341 return refKey;
342 }
343
344
345
346
347
348
349
350
351
352 public void setRefKey(String value) {
353 this.refKey = value;
354 }
355
356
357
358
359
360
361
362
363
364 @Basic
365 @Column(name = "LANGUAGE_VALUE", length = 10485760)
366 public String getLanguageValue() {
367 return languageValue;
368 }
369
370
371
372
373
374
375
376
377
378 public void setLanguageValue(String value) {
379 this.languageValue = value;
380 }
381
382
383
384
385
386
387
388
389
390 @Basic
391 @Column(name = "LANGUAGE_CONTENT_TYPE", length = 255)
392 @Enumerated(EnumType.STRING)
393 public LanguageContentType getLanguageContentType() {
394 return languageContentType;
395 }
396
397
398
399
400
401
402
403
404
405 public void setLanguageContentType(LanguageContentType value) {
406 this.languageContentType = value;
407 }
408
409 public LanguageContentData withModelObjectId(Integer value) {
410 setModelObjectId(value);
411 return this;
412 }
413
414 public LanguageContentData withModelObjectVersion(Integer value) {
415 setModelObjectVersion(value);
416 return this;
417 }
418
419 public LanguageContentData withFromLanguage(String value) {
420 setFromLanguage(value);
421 return this;
422 }
423
424 public LanguageContentData withToLanguage(String value) {
425 setToLanguage(value);
426 return this;
427 }
428
429 public LanguageContentData withCreatedDate(Date value) {
430 setCreatedDate(value);
431 return this;
432 }
433
434 public LanguageContentData withKeyGroup(String value) {
435 setKeyGroup(value);
436 return this;
437 }
438
439 public LanguageContentData withLocationContext(String value) {
440 setLocationContext(value);
441 return this;
442 }
443
444 public LanguageContentData withLastModifiedDate(Date value) {
445 setLastModifiedDate(value);
446 return this;
447 }
448
449 public LanguageContentData withRefKey(String value) {
450 setRefKey(value);
451 return this;
452 }
453
454 public LanguageContentData withLanguageValue(String value) {
455 setLanguageValue(value);
456 return this;
457 }
458
459 public LanguageContentData withLanguageContentType(LanguageContentType value) {
460 setLanguageContentType(value);
461 return this;
462 }
463
464 public String toString() {
465 final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
466 final StringBuilder buffer = new StringBuilder();
467 append(null, buffer, strategy);
468 return buffer.toString();
469 }
470
471 public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
472 strategy.appendStart(locator, this, buffer);
473 appendFields(locator, buffer, strategy);
474 strategy.appendEnd(locator, this, buffer);
475 return buffer;
476 }
477
478 public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
479 {
480 Integer theModelObjectId;
481 theModelObjectId = this.getModelObjectId();
482 strategy.appendField(locator, this, "modelObjectId", buffer, theModelObjectId);
483 }
484 {
485 Integer theModelObjectVersion;
486 theModelObjectVersion = this.getModelObjectVersion();
487 strategy.appendField(locator, this, "modelObjectVersion", buffer, theModelObjectVersion);
488 }
489 {
490 String theFromLanguage;
491 theFromLanguage = this.getFromLanguage();
492 strategy.appendField(locator, this, "fromLanguage", buffer, theFromLanguage);
493 }
494 {
495 String theToLanguage;
496 theToLanguage = this.getToLanguage();
497 strategy.appendField(locator, this, "toLanguage", buffer, theToLanguage);
498 }
499 {
500 Date theCreatedDate;
501 theCreatedDate = this.getCreatedDate();
502 strategy.appendField(locator, this, "createdDate", buffer, theCreatedDate);
503 }
504 {
505 String theKeyGroup;
506 theKeyGroup = this.getKeyGroup();
507 strategy.appendField(locator, this, "keyGroup", buffer, theKeyGroup);
508 }
509 {
510 String theLocationContext;
511 theLocationContext = this.getLocationContext();
512 strategy.appendField(locator, this, "locationContext", buffer, theLocationContext);
513 }
514 {
515 Date theLastModifiedDate;
516 theLastModifiedDate = this.getLastModifiedDate();
517 strategy.appendField(locator, this, "lastModifiedDate", buffer, theLastModifiedDate);
518 }
519 {
520 String theRefKey;
521 theRefKey = this.getRefKey();
522 strategy.appendField(locator, this, "refKey", buffer, theRefKey);
523 }
524 {
525 String theLanguageValue;
526 theLanguageValue = this.getLanguageValue();
527 strategy.appendField(locator, this, "languageValue", buffer, theLanguageValue);
528 }
529 {
530 LanguageContentType theLanguageContentType;
531 theLanguageContentType = this.getLanguageContentType();
532 strategy.appendField(locator, this, "languageContentType", buffer, theLanguageContentType);
533 }
534 return buffer;
535 }
536
537
538
539
540
541
542
543
544
545 @Id
546 @Column(name = "HJID")
547 @GeneratedValue(strategy = GenerationType.AUTO)
548 public Long getHjid() {
549 return hjid;
550 }
551
552
553
554
555
556
557
558
559
560 public void setHjid(Long value) {
561 this.hjid = value;
562 }
563
564 public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
565 if ((object == null)||(this.getClass()!= object.getClass())) {
566 return false;
567 }
568 if (this == object) {
569 return true;
570 }
571 final LanguageContentData that = ((LanguageContentData) object);
572 {
573 Integer lhsModelObjectId;
574 lhsModelObjectId = this.getModelObjectId();
575 Integer rhsModelObjectId;
576 rhsModelObjectId = that.getModelObjectId();
577 if (!strategy.equals(LocatorUtils.property(thisLocator, "modelObjectId", lhsModelObjectId), LocatorUtils.property(thatLocator, "modelObjectId", rhsModelObjectId), lhsModelObjectId, rhsModelObjectId)) {
578 return false;
579 }
580 }
581 {
582 Integer lhsModelObjectVersion;
583 lhsModelObjectVersion = this.getModelObjectVersion();
584 Integer rhsModelObjectVersion;
585 rhsModelObjectVersion = that.getModelObjectVersion();
586 if (!strategy.equals(LocatorUtils.property(thisLocator, "modelObjectVersion", lhsModelObjectVersion), LocatorUtils.property(thatLocator, "modelObjectVersion", rhsModelObjectVersion), lhsModelObjectVersion, rhsModelObjectVersion)) {
587 return false;
588 }
589 }
590 {
591 String lhsFromLanguage;
592 lhsFromLanguage = this.getFromLanguage();
593 String rhsFromLanguage;
594 rhsFromLanguage = that.getFromLanguage();
595 if (!strategy.equals(LocatorUtils.property(thisLocator, "fromLanguage", lhsFromLanguage), LocatorUtils.property(thatLocator, "fromLanguage", rhsFromLanguage), lhsFromLanguage, rhsFromLanguage)) {
596 return false;
597 }
598 }
599 {
600 String lhsToLanguage;
601 lhsToLanguage = this.getToLanguage();
602 String rhsToLanguage;
603 rhsToLanguage = that.getToLanguage();
604 if (!strategy.equals(LocatorUtils.property(thisLocator, "toLanguage", lhsToLanguage), LocatorUtils.property(thatLocator, "toLanguage", rhsToLanguage), lhsToLanguage, rhsToLanguage)) {
605 return false;
606 }
607 }
608 {
609 Date lhsCreatedDate;
610 lhsCreatedDate = this.getCreatedDate();
611 Date rhsCreatedDate;
612 rhsCreatedDate = that.getCreatedDate();
613 if (!strategy.equals(LocatorUtils.property(thisLocator, "createdDate", lhsCreatedDate), LocatorUtils.property(thatLocator, "createdDate", rhsCreatedDate), lhsCreatedDate, rhsCreatedDate)) {
614 return false;
615 }
616 }
617 {
618 String lhsKeyGroup;
619 lhsKeyGroup = this.getKeyGroup();
620 String rhsKeyGroup;
621 rhsKeyGroup = that.getKeyGroup();
622 if (!strategy.equals(LocatorUtils.property(thisLocator, "keyGroup", lhsKeyGroup), LocatorUtils.property(thatLocator, "keyGroup", rhsKeyGroup), lhsKeyGroup, rhsKeyGroup)) {
623 return false;
624 }
625 }
626 {
627 String lhsLocationContext;
628 lhsLocationContext = this.getLocationContext();
629 String rhsLocationContext;
630 rhsLocationContext = that.getLocationContext();
631 if (!strategy.equals(LocatorUtils.property(thisLocator, "locationContext", lhsLocationContext), LocatorUtils.property(thatLocator, "locationContext", rhsLocationContext), lhsLocationContext, rhsLocationContext)) {
632 return false;
633 }
634 }
635 {
636 Date lhsLastModifiedDate;
637 lhsLastModifiedDate = this.getLastModifiedDate();
638 Date rhsLastModifiedDate;
639 rhsLastModifiedDate = that.getLastModifiedDate();
640 if (!strategy.equals(LocatorUtils.property(thisLocator, "lastModifiedDate", lhsLastModifiedDate), LocatorUtils.property(thatLocator, "lastModifiedDate", rhsLastModifiedDate), lhsLastModifiedDate, rhsLastModifiedDate)) {
641 return false;
642 }
643 }
644 {
645 String lhsRefKey;
646 lhsRefKey = this.getRefKey();
647 String rhsRefKey;
648 rhsRefKey = that.getRefKey();
649 if (!strategy.equals(LocatorUtils.property(thisLocator, "refKey", lhsRefKey), LocatorUtils.property(thatLocator, "refKey", rhsRefKey), lhsRefKey, rhsRefKey)) {
650 return false;
651 }
652 }
653 {
654 String lhsLanguageValue;
655 lhsLanguageValue = this.getLanguageValue();
656 String rhsLanguageValue;
657 rhsLanguageValue = that.getLanguageValue();
658 if (!strategy.equals(LocatorUtils.property(thisLocator, "languageValue", lhsLanguageValue), LocatorUtils.property(thatLocator, "languageValue", rhsLanguageValue), lhsLanguageValue, rhsLanguageValue)) {
659 return false;
660 }
661 }
662 {
663 LanguageContentType lhsLanguageContentType;
664 lhsLanguageContentType = this.getLanguageContentType();
665 LanguageContentType rhsLanguageContentType;
666 rhsLanguageContentType = that.getLanguageContentType();
667 if (!strategy.equals(LocatorUtils.property(thisLocator, "languageContentType", lhsLanguageContentType), LocatorUtils.property(thatLocator, "languageContentType", rhsLanguageContentType), lhsLanguageContentType, rhsLanguageContentType)) {
668 return false;
669 }
670 }
671 return true;
672 }
673
674 public boolean equals(Object object) {
675 final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
676 return equals(null, null, object, strategy);
677 }
678
679 public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
680 int currentHashCode = 1;
681 {
682 Integer theModelObjectId;
683 theModelObjectId = this.getModelObjectId();
684 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modelObjectId", theModelObjectId), currentHashCode, theModelObjectId);
685 }
686 {
687 Integer theModelObjectVersion;
688 theModelObjectVersion = this.getModelObjectVersion();
689 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "modelObjectVersion", theModelObjectVersion), currentHashCode, theModelObjectVersion);
690 }
691 {
692 String theFromLanguage;
693 theFromLanguage = this.getFromLanguage();
694 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fromLanguage", theFromLanguage), currentHashCode, theFromLanguage);
695 }
696 {
697 String theToLanguage;
698 theToLanguage = this.getToLanguage();
699 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "toLanguage", theToLanguage), currentHashCode, theToLanguage);
700 }
701 {
702 Date theCreatedDate;
703 theCreatedDate = this.getCreatedDate();
704 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "createdDate", theCreatedDate), currentHashCode, theCreatedDate);
705 }
706 {
707 String theKeyGroup;
708 theKeyGroup = this.getKeyGroup();
709 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "keyGroup", theKeyGroup), currentHashCode, theKeyGroup);
710 }
711 {
712 String theLocationContext;
713 theLocationContext = this.getLocationContext();
714 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "locationContext", theLocationContext), currentHashCode, theLocationContext);
715 }
716 {
717 Date theLastModifiedDate;
718 theLastModifiedDate = this.getLastModifiedDate();
719 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastModifiedDate", theLastModifiedDate), currentHashCode, theLastModifiedDate);
720 }
721 {
722 String theRefKey;
723 theRefKey = this.getRefKey();
724 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "refKey", theRefKey), currentHashCode, theRefKey);
725 }
726 {
727 String theLanguageValue;
728 theLanguageValue = this.getLanguageValue();
729 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "languageValue", theLanguageValue), currentHashCode, theLanguageValue);
730 }
731 {
732 LanguageContentType theLanguageContentType;
733 theLanguageContentType = this.getLanguageContentType();
734 currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "languageContentType", theLanguageContentType), currentHashCode, theLanguageContentType);
735 }
736 return currentHashCode;
737 }
738
739 public int hashCode() {
740 final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
741 return this.hashCode(null, strategy);
742 }
743
744 }