View Javadoc
1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2017.04.23 at 07:22:12 PM CEST 
6   //
7   
8   
9   package com.hack23.cia.model.external.riksdagen.person.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.Id;
19  import javax.persistence.Inheritance;
20  import javax.persistence.InheritanceType;
21  import javax.persistence.JoinColumn;
22  import javax.persistence.ManyToOne;
23  import javax.persistence.Table;
24  import javax.xml.bind.annotation.XmlAccessType;
25  import javax.xml.bind.annotation.XmlAccessorType;
26  import javax.xml.bind.annotation.XmlElement;
27  import javax.xml.bind.annotation.XmlSchemaType;
28  import javax.xml.bind.annotation.XmlType;
29  import com.hack23.cia.model.common.api.ModelObject;
30  import org.jvnet.jaxb2_commons.lang.Equals;
31  import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
32  import org.jvnet.jaxb2_commons.lang.HashCode;
33  import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
34  import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
35  import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
36  import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
37  import org.jvnet.jaxb2_commons.lang.ToString;
38  import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
39  import org.jvnet.jaxb2_commons.locator.ObjectLocator;
40  import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
41  
42  
43  /**
44   * <p>Java class for PersonData complex type.
45   * 
46   * <p>The following schema fragment specifies the expected content contained within this class.
47   * 
48   * <pre>
49   * &lt;complexType name="PersonData"&gt;
50   *   &lt;complexContent&gt;
51   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
52   *       &lt;sequence&gt;
53   *         &lt;element name="hangar_guid" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
54   *         &lt;element name="intressent_id" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
55   *         &lt;element name="fodd_ar" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
56   *         &lt;element name="kon" type="{http://person.riksdagen.external.model.cia.hack23.com/impl}SexType"/&gt;
57   *         &lt;element name="efternamn" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
58   *         &lt;element name="tilltalsnamn" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
59   *         &lt;element name="iort" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
60   *         &lt;element name="parti" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
61   *         &lt;element name="valkrets" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
62   *         &lt;element name="status" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
63   *         &lt;element name="bild_url_192" type="{http://www.w3.org/2001/XMLSchema}anyURI"/&gt;
64   *         &lt;element name="bild_url_max" type="{http://www.w3.org/2001/XMLSchema}anyURI"/&gt;
65   *         &lt;element name="bild_url_80" type="{http://www.w3.org/2001/XMLSchema}anyURI"/&gt;
66   *         &lt;element name="person_url_xml" type="{http://www.w3.org/2001/XMLSchema}anyURI"/&gt;
67   *         &lt;element name="personuppdrag" type="{http://person.riksdagen.external.model.cia.hack23.com/impl}PersonAssignmentData"/&gt;
68   *         &lt;element name="personuppgift" type="{http://person.riksdagen.external.model.cia.hack23.com/impl}PersonDetailData"/&gt;
69   *       &lt;/sequence&gt;
70   *     &lt;/restriction&gt;
71   *   &lt;/complexContent&gt;
72   * &lt;/complexType&gt;
73   * </pre>
74   * 
75   * 
76   */
77  @XmlAccessorType(XmlAccessType.FIELD)
78  @XmlType(name = "PersonData", propOrder = {
79      "hangarGuid",
80      "id",
81      "bornYear",
82      "gender",
83      "lastName",
84      "firstName",
85      "place",
86      "party",
87      "electionRegion",
88      "status",
89      "imageUrl192",
90      "imageUrlMax",
91      "imageUrl80",
92      "personUrlXml",
93      "personAssignmentData",
94      "personDetailData"
95  })
96  @Entity(name = "PersonData")
97  @Table(name = "PERSON_DATA")
98  @Inheritance(strategy = InheritanceType.JOINED)
99  public class PersonData
100     implements Serializable, ModelObject, Equals, HashCode, ToString
101 {
102 
103     @XmlElement(name = "hangar_guid", required = true)
104     protected String hangarGuid;
105     @XmlElement(name = "intressent_id", required = true)
106     protected String id;
107     @XmlElement(name = "fodd_ar")
108     protected int bornYear;
109     @XmlElement(name = "kon", required = true)
110     @XmlSchemaType(name = "string")
111     protected SexType gender;
112     @XmlElement(name = "efternamn", required = true)
113     protected String lastName;
114     @XmlElement(name = "tilltalsnamn", required = true)
115     protected String firstName;
116     @XmlElement(name = "iort", required = true)
117     protected String place;
118     @XmlElement(name = "parti", required = true)
119     protected String party;
120     @XmlElement(name = "valkrets", required = true)
121     protected String electionRegion;
122     @XmlElement(required = true)
123     protected String status;
124     @XmlElement(name = "bild_url_192", required = true)
125     @XmlSchemaType(name = "anyURI")
126     protected String imageUrl192;
127     @XmlElement(name = "bild_url_max", required = true)
128     @XmlSchemaType(name = "anyURI")
129     protected String imageUrlMax;
130     @XmlElement(name = "bild_url_80", required = true)
131     @XmlSchemaType(name = "anyURI")
132     protected String imageUrl80;
133     @XmlElement(name = "person_url_xml", required = true)
134     @XmlSchemaType(name = "anyURI")
135     protected String personUrlXml;
136     @XmlElement(name = "personuppdrag", required = true)
137     protected PersonAssignmentData personAssignmentData;
138     @XmlElement(name = "personuppgift", required = true)
139     protected PersonDetailData personDetailData;
140 
141     /**
142      * Gets the value of the hangarGuid property.
143      * 
144      * @return
145      *     possible object is
146      *     {@link String }
147      *     
148      */
149     @Basic
150     @Column(name = "HANGAR_GUID", length = 255)
151     public String getHangarGuid() {
152         return hangarGuid;
153     }
154 
155     /**
156      * Sets the value of the hangarGuid property.
157      * 
158      * @param value
159      *     allowed object is
160      *     {@link String }
161      *     
162      */
163     public void setHangarGuid(String value) {
164         this.hangarGuid = value;
165     }
166 
167     /**
168      * Gets the value of the id property.
169      * 
170      * @return
171      *     possible object is
172      *     {@link String }
173      *     
174      */
175     @Id
176     @Column(name = "ID")
177     public String getId() {
178         return id;
179     }
180 
181     /**
182      * Sets the value of the id property.
183      * 
184      * @param value
185      *     allowed object is
186      *     {@link String }
187      *     
188      */
189     public void setId(String value) {
190         this.id = value;
191     }
192 
193     /**
194      * Gets the value of the bornYear property.
195      * 
196      */
197     @Basic
198     @Column(name = "BORN_YEAR", precision = 10, scale = 0)
199     public int getBornYear() {
200         return bornYear;
201     }
202 
203     /**
204      * Sets the value of the bornYear property.
205      * 
206      */
207     public void setBornYear(int value) {
208         this.bornYear = value;
209     }
210 
211     /**
212      * Gets the value of the gender property.
213      * 
214      * @return
215      *     possible object is
216      *     {@link SexType }
217      *     
218      */
219     @Basic
220     @Column(name = "GENDER", length = 255)
221     @Enumerated(EnumType.STRING)
222     public SexType getGender() {
223         return gender;
224     }
225 
226     /**
227      * Sets the value of the gender property.
228      * 
229      * @param value
230      *     allowed object is
231      *     {@link SexType }
232      *     
233      */
234     public void setGender(SexType value) {
235         this.gender = value;
236     }
237 
238     /**
239      * Gets the value of the lastName property.
240      * 
241      * @return
242      *     possible object is
243      *     {@link String }
244      *     
245      */
246     @Basic
247     @Column(name = "LAST_NAME", length = 255)
248     public String getLastName() {
249         return lastName;
250     }
251 
252     /**
253      * Sets the value of the lastName property.
254      * 
255      * @param value
256      *     allowed object is
257      *     {@link String }
258      *     
259      */
260     public void setLastName(String value) {
261         this.lastName = value;
262     }
263 
264     /**
265      * Gets the value of the firstName property.
266      * 
267      * @return
268      *     possible object is
269      *     {@link String }
270      *     
271      */
272     @Basic
273     @Column(name = "FIRST_NAME", length = 255)
274     public String getFirstName() {
275         return firstName;
276     }
277 
278     /**
279      * Sets the value of the firstName property.
280      * 
281      * @param value
282      *     allowed object is
283      *     {@link String }
284      *     
285      */
286     public void setFirstName(String value) {
287         this.firstName = value;
288     }
289 
290     /**
291      * Gets the value of the place property.
292      * 
293      * @return
294      *     possible object is
295      *     {@link String }
296      *     
297      */
298     @Basic
299     @Column(name = "PLACE", length = 255)
300     public String getPlace() {
301         return place;
302     }
303 
304     /**
305      * Sets the value of the place property.
306      * 
307      * @param value
308      *     allowed object is
309      *     {@link String }
310      *     
311      */
312     public void setPlace(String value) {
313         this.place = value;
314     }
315 
316     /**
317      * Gets the value of the party property.
318      * 
319      * @return
320      *     possible object is
321      *     {@link String }
322      *     
323      */
324     @Basic
325     @Column(name = "PARTY", length = 255)
326     public String getParty() {
327         return party;
328     }
329 
330     /**
331      * Sets the value of the party property.
332      * 
333      * @param value
334      *     allowed object is
335      *     {@link String }
336      *     
337      */
338     public void setParty(String value) {
339         this.party = value;
340     }
341 
342     /**
343      * Gets the value of the electionRegion property.
344      * 
345      * @return
346      *     possible object is
347      *     {@link String }
348      *     
349      */
350     @Basic
351     @Column(name = "ELECTION_REGION", length = 255)
352     public String getElectionRegion() {
353         return electionRegion;
354     }
355 
356     /**
357      * Sets the value of the electionRegion property.
358      * 
359      * @param value
360      *     allowed object is
361      *     {@link String }
362      *     
363      */
364     public void setElectionRegion(String value) {
365         this.electionRegion = value;
366     }
367 
368     /**
369      * Gets the value of the status property.
370      * 
371      * @return
372      *     possible object is
373      *     {@link String }
374      *     
375      */
376     @Basic
377     @Column(name = "STATUS", length = 255)
378     public String getStatus() {
379         return status;
380     }
381 
382     /**
383      * Sets the value of the status property.
384      * 
385      * @param value
386      *     allowed object is
387      *     {@link String }
388      *     
389      */
390     public void setStatus(String value) {
391         this.status = value;
392     }
393 
394     /**
395      * Gets the value of the imageUrl192 property.
396      * 
397      * @return
398      *     possible object is
399      *     {@link String }
400      *     
401      */
402     @Basic
403     @Column(name = "IMAGE_URL_192")
404     public String getImageUrl192() {
405         return imageUrl192;
406     }
407 
408     /**
409      * Sets the value of the imageUrl192 property.
410      * 
411      * @param value
412      *     allowed object is
413      *     {@link String }
414      *     
415      */
416     public void setImageUrl192(String value) {
417         this.imageUrl192 = value;
418     }
419 
420     /**
421      * Gets the value of the imageUrlMax property.
422      * 
423      * @return
424      *     possible object is
425      *     {@link String }
426      *     
427      */
428     @Basic
429     @Column(name = "IMAGE_URL_MAX")
430     public String getImageUrlMax() {
431         return imageUrlMax;
432     }
433 
434     /**
435      * Sets the value of the imageUrlMax property.
436      * 
437      * @param value
438      *     allowed object is
439      *     {@link String }
440      *     
441      */
442     public void setImageUrlMax(String value) {
443         this.imageUrlMax = value;
444     }
445 
446     /**
447      * Gets the value of the imageUrl80 property.
448      * 
449      * @return
450      *     possible object is
451      *     {@link String }
452      *     
453      */
454     @Basic
455     @Column(name = "IMAGE_URL_80")
456     public String getImageUrl80() {
457         return imageUrl80;
458     }
459 
460     /**
461      * Sets the value of the imageUrl80 property.
462      * 
463      * @param value
464      *     allowed object is
465      *     {@link String }
466      *     
467      */
468     public void setImageUrl80(String value) {
469         this.imageUrl80 = value;
470     }
471 
472     /**
473      * Gets the value of the personUrlXml property.
474      * 
475      * @return
476      *     possible object is
477      *     {@link String }
478      *     
479      */
480     @Basic
481     @Column(name = "PERSON_URL_XML")
482     public String getPersonUrlXml() {
483         return personUrlXml;
484     }
485 
486     /**
487      * Sets the value of the personUrlXml property.
488      * 
489      * @param value
490      *     allowed object is
491      *     {@link String }
492      *     
493      */
494     public void setPersonUrlXml(String value) {
495         this.personUrlXml = value;
496     }
497 
498     /**
499      * Gets the value of the personAssignmentData property.
500      * 
501      * @return
502      *     possible object is
503      *     {@link PersonAssignmentData }
504      *     
505      */
506     @ManyToOne(targetEntity = PersonAssignmentData.class, cascade = {
507         CascadeType.ALL
508     })
509     @JoinColumn(name = "PERSON_ASSIGNMENT_DATA_PERSO_0")
510     public PersonAssignmentData getPersonAssignmentData() {
511         return personAssignmentData;
512     }
513 
514     /**
515      * Sets the value of the personAssignmentData property.
516      * 
517      * @param value
518      *     allowed object is
519      *     {@link PersonAssignmentData }
520      *     
521      */
522     public void setPersonAssignmentData(PersonAssignmentData value) {
523         this.personAssignmentData = value;
524     }
525 
526     /**
527      * Gets the value of the personDetailData property.
528      * 
529      * @return
530      *     possible object is
531      *     {@link PersonDetailData }
532      *     
533      */
534     @ManyToOne(targetEntity = PersonDetailData.class, cascade = {
535         CascadeType.ALL
536     })
537     @JoinColumn(name = "PERSON_DETAIL_DATA_PERSON_DA_0")
538     public PersonDetailData getPersonDetailData() {
539         return personDetailData;
540     }
541 
542     /**
543      * Sets the value of the personDetailData property.
544      * 
545      * @param value
546      *     allowed object is
547      *     {@link PersonDetailData }
548      *     
549      */
550     public void setPersonDetailData(PersonDetailData value) {
551         this.personDetailData = value;
552     }
553 
554     public PersonData withHangarGuid(String value) {
555         setHangarGuid(value);
556         return this;
557     }
558 
559     public PersonData withId(String value) {
560         setId(value);
561         return this;
562     }
563 
564     public PersonData withBornYear(int value) {
565         setBornYear(value);
566         return this;
567     }
568 
569     public PersonData withGender(SexType value) {
570         setGender(value);
571         return this;
572     }
573 
574     public PersonData withLastName(String value) {
575         setLastName(value);
576         return this;
577     }
578 
579     public PersonData withFirstName(String value) {
580         setFirstName(value);
581         return this;
582     }
583 
584     public PersonData withPlace(String value) {
585         setPlace(value);
586         return this;
587     }
588 
589     public PersonData withParty(String value) {
590         setParty(value);
591         return this;
592     }
593 
594     public PersonData withElectionRegion(String value) {
595         setElectionRegion(value);
596         return this;
597     }
598 
599     public PersonData withStatus(String value) {
600         setStatus(value);
601         return this;
602     }
603 
604     public PersonData withImageUrl192(String value) {
605         setImageUrl192(value);
606         return this;
607     }
608 
609     public PersonData withImageUrlMax(String value) {
610         setImageUrlMax(value);
611         return this;
612     }
613 
614     public PersonData withImageUrl80(String value) {
615         setImageUrl80(value);
616         return this;
617     }
618 
619     public PersonData withPersonUrlXml(String value) {
620         setPersonUrlXml(value);
621         return this;
622     }
623 
624     public PersonData withPersonAssignmentData(PersonAssignmentData value) {
625         setPersonAssignmentData(value);
626         return this;
627     }
628 
629     public PersonData withPersonDetailData(PersonDetailData value) {
630         setPersonDetailData(value);
631         return this;
632     }
633 
634     public String toString() {
635         final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
636         final StringBuilder buffer = new StringBuilder();
637         append(null, buffer, strategy);
638         return buffer.toString();
639     }
640 
641     public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
642         strategy.appendStart(locator, this, buffer);
643         appendFields(locator, buffer, strategy);
644         strategy.appendEnd(locator, this, buffer);
645         return buffer;
646     }
647 
648     public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
649         {
650             String theHangarGuid;
651             theHangarGuid = this.getHangarGuid();
652             strategy.appendField(locator, this, "hangarGuid", buffer, theHangarGuid);
653         }
654         {
655             String theId;
656             theId = this.getId();
657             strategy.appendField(locator, this, "id", buffer, theId);
658         }
659         {
660             int theBornYear;
661             theBornYear = this.getBornYear();
662             strategy.appendField(locator, this, "bornYear", buffer, theBornYear);
663         }
664         {
665             SexType theGender;
666             theGender = this.getGender();
667             strategy.appendField(locator, this, "gender", buffer, theGender);
668         }
669         {
670             String theLastName;
671             theLastName = this.getLastName();
672             strategy.appendField(locator, this, "lastName", buffer, theLastName);
673         }
674         {
675             String theFirstName;
676             theFirstName = this.getFirstName();
677             strategy.appendField(locator, this, "firstName", buffer, theFirstName);
678         }
679         {
680             String thePlace;
681             thePlace = this.getPlace();
682             strategy.appendField(locator, this, "place", buffer, thePlace);
683         }
684         {
685             String theParty;
686             theParty = this.getParty();
687             strategy.appendField(locator, this, "party", buffer, theParty);
688         }
689         {
690             String theElectionRegion;
691             theElectionRegion = this.getElectionRegion();
692             strategy.appendField(locator, this, "electionRegion", buffer, theElectionRegion);
693         }
694         {
695             String theStatus;
696             theStatus = this.getStatus();
697             strategy.appendField(locator, this, "status", buffer, theStatus);
698         }
699         {
700             String theImageUrl192;
701             theImageUrl192 = this.getImageUrl192();
702             strategy.appendField(locator, this, "imageUrl192", buffer, theImageUrl192);
703         }
704         {
705             String theImageUrlMax;
706             theImageUrlMax = this.getImageUrlMax();
707             strategy.appendField(locator, this, "imageUrlMax", buffer, theImageUrlMax);
708         }
709         {
710             String theImageUrl80;
711             theImageUrl80 = this.getImageUrl80();
712             strategy.appendField(locator, this, "imageUrl80", buffer, theImageUrl80);
713         }
714         {
715             String thePersonUrlXml;
716             thePersonUrlXml = this.getPersonUrlXml();
717             strategy.appendField(locator, this, "personUrlXml", buffer, thePersonUrlXml);
718         }
719         {
720             PersonAssignmentData thePersonAssignmentData;
721             thePersonAssignmentData = this.getPersonAssignmentData();
722             strategy.appendField(locator, this, "personAssignmentData", buffer, thePersonAssignmentData);
723         }
724         {
725             PersonDetailData thePersonDetailData;
726             thePersonDetailData = this.getPersonDetailData();
727             strategy.appendField(locator, this, "personDetailData", buffer, thePersonDetailData);
728         }
729         return buffer;
730     }
731 
732     public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
733         if ((object == null)||(this.getClass()!= object.getClass())) {
734             return false;
735         }
736         if (this == object) {
737             return true;
738         }
739         final PersonData that = ((PersonData) object);
740         {
741             String lhsHangarGuid;
742             lhsHangarGuid = this.getHangarGuid();
743             String rhsHangarGuid;
744             rhsHangarGuid = that.getHangarGuid();
745             if (!strategy.equals(LocatorUtils.property(thisLocator, "hangarGuid", lhsHangarGuid), LocatorUtils.property(thatLocator, "hangarGuid", rhsHangarGuid), lhsHangarGuid, rhsHangarGuid)) {
746                 return false;
747             }
748         }
749         {
750             String lhsId;
751             lhsId = this.getId();
752             String rhsId;
753             rhsId = that.getId();
754             if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId)) {
755                 return false;
756             }
757         }
758         {
759             int lhsBornYear;
760             lhsBornYear = this.getBornYear();
761             int rhsBornYear;
762             rhsBornYear = that.getBornYear();
763             if (!strategy.equals(LocatorUtils.property(thisLocator, "bornYear", lhsBornYear), LocatorUtils.property(thatLocator, "bornYear", rhsBornYear), lhsBornYear, rhsBornYear)) {
764                 return false;
765             }
766         }
767         {
768             SexType lhsGender;
769             lhsGender = this.getGender();
770             SexType rhsGender;
771             rhsGender = that.getGender();
772             if (!strategy.equals(LocatorUtils.property(thisLocator, "gender", lhsGender), LocatorUtils.property(thatLocator, "gender", rhsGender), lhsGender, rhsGender)) {
773                 return false;
774             }
775         }
776         {
777             String lhsLastName;
778             lhsLastName = this.getLastName();
779             String rhsLastName;
780             rhsLastName = that.getLastName();
781             if (!strategy.equals(LocatorUtils.property(thisLocator, "lastName", lhsLastName), LocatorUtils.property(thatLocator, "lastName", rhsLastName), lhsLastName, rhsLastName)) {
782                 return false;
783             }
784         }
785         {
786             String lhsFirstName;
787             lhsFirstName = this.getFirstName();
788             String rhsFirstName;
789             rhsFirstName = that.getFirstName();
790             if (!strategy.equals(LocatorUtils.property(thisLocator, "firstName", lhsFirstName), LocatorUtils.property(thatLocator, "firstName", rhsFirstName), lhsFirstName, rhsFirstName)) {
791                 return false;
792             }
793         }
794         {
795             String lhsPlace;
796             lhsPlace = this.getPlace();
797             String rhsPlace;
798             rhsPlace = that.getPlace();
799             if (!strategy.equals(LocatorUtils.property(thisLocator, "place", lhsPlace), LocatorUtils.property(thatLocator, "place", rhsPlace), lhsPlace, rhsPlace)) {
800                 return false;
801             }
802         }
803         {
804             String lhsParty;
805             lhsParty = this.getParty();
806             String rhsParty;
807             rhsParty = that.getParty();
808             if (!strategy.equals(LocatorUtils.property(thisLocator, "party", lhsParty), LocatorUtils.property(thatLocator, "party", rhsParty), lhsParty, rhsParty)) {
809                 return false;
810             }
811         }
812         {
813             String lhsElectionRegion;
814             lhsElectionRegion = this.getElectionRegion();
815             String rhsElectionRegion;
816             rhsElectionRegion = that.getElectionRegion();
817             if (!strategy.equals(LocatorUtils.property(thisLocator, "electionRegion", lhsElectionRegion), LocatorUtils.property(thatLocator, "electionRegion", rhsElectionRegion), lhsElectionRegion, rhsElectionRegion)) {
818                 return false;
819             }
820         }
821         {
822             String lhsStatus;
823             lhsStatus = this.getStatus();
824             String rhsStatus;
825             rhsStatus = that.getStatus();
826             if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus)) {
827                 return false;
828             }
829         }
830         {
831             String lhsImageUrl192;
832             lhsImageUrl192 = this.getImageUrl192();
833             String rhsImageUrl192;
834             rhsImageUrl192 = that.getImageUrl192();
835             if (!strategy.equals(LocatorUtils.property(thisLocator, "imageUrl192", lhsImageUrl192), LocatorUtils.property(thatLocator, "imageUrl192", rhsImageUrl192), lhsImageUrl192, rhsImageUrl192)) {
836                 return false;
837             }
838         }
839         {
840             String lhsImageUrlMax;
841             lhsImageUrlMax = this.getImageUrlMax();
842             String rhsImageUrlMax;
843             rhsImageUrlMax = that.getImageUrlMax();
844             if (!strategy.equals(LocatorUtils.property(thisLocator, "imageUrlMax", lhsImageUrlMax), LocatorUtils.property(thatLocator, "imageUrlMax", rhsImageUrlMax), lhsImageUrlMax, rhsImageUrlMax)) {
845                 return false;
846             }
847         }
848         {
849             String lhsImageUrl80;
850             lhsImageUrl80 = this.getImageUrl80();
851             String rhsImageUrl80;
852             rhsImageUrl80 = that.getImageUrl80();
853             if (!strategy.equals(LocatorUtils.property(thisLocator, "imageUrl80", lhsImageUrl80), LocatorUtils.property(thatLocator, "imageUrl80", rhsImageUrl80), lhsImageUrl80, rhsImageUrl80)) {
854                 return false;
855             }
856         }
857         {
858             String lhsPersonUrlXml;
859             lhsPersonUrlXml = this.getPersonUrlXml();
860             String rhsPersonUrlXml;
861             rhsPersonUrlXml = that.getPersonUrlXml();
862             if (!strategy.equals(LocatorUtils.property(thisLocator, "personUrlXml", lhsPersonUrlXml), LocatorUtils.property(thatLocator, "personUrlXml", rhsPersonUrlXml), lhsPersonUrlXml, rhsPersonUrlXml)) {
863                 return false;
864             }
865         }
866         {
867             PersonAssignmentData lhsPersonAssignmentData;
868             lhsPersonAssignmentData = this.getPersonAssignmentData();
869             PersonAssignmentData rhsPersonAssignmentData;
870             rhsPersonAssignmentData = that.getPersonAssignmentData();
871             if (!strategy.equals(LocatorUtils.property(thisLocator, "personAssignmentData", lhsPersonAssignmentData), LocatorUtils.property(thatLocator, "personAssignmentData", rhsPersonAssignmentData), lhsPersonAssignmentData, rhsPersonAssignmentData)) {
872                 return false;
873             }
874         }
875         {
876             PersonDetailData lhsPersonDetailData;
877             lhsPersonDetailData = this.getPersonDetailData();
878             PersonDetailData rhsPersonDetailData;
879             rhsPersonDetailData = that.getPersonDetailData();
880             if (!strategy.equals(LocatorUtils.property(thisLocator, "personDetailData", lhsPersonDetailData), LocatorUtils.property(thatLocator, "personDetailData", rhsPersonDetailData), lhsPersonDetailData, rhsPersonDetailData)) {
881                 return false;
882             }
883         }
884         return true;
885     }
886 
887     public boolean equals(Object object) {
888         final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
889         return equals(null, null, object, strategy);
890     }
891 
892     public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
893         int currentHashCode = 1;
894         {
895             String theHangarGuid;
896             theHangarGuid = this.getHangarGuid();
897             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "hangarGuid", theHangarGuid), currentHashCode, theHangarGuid);
898         }
899         {
900             String theId;
901             theId = this.getId();
902             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId);
903         }
904         {
905             int theBornYear;
906             theBornYear = this.getBornYear();
907             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bornYear", theBornYear), currentHashCode, theBornYear);
908         }
909         {
910             SexType theGender;
911             theGender = this.getGender();
912             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gender", theGender), currentHashCode, theGender);
913         }
914         {
915             String theLastName;
916             theLastName = this.getLastName();
917             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastName", theLastName), currentHashCode, theLastName);
918         }
919         {
920             String theFirstName;
921             theFirstName = this.getFirstName();
922             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "firstName", theFirstName), currentHashCode, theFirstName);
923         }
924         {
925             String thePlace;
926             thePlace = this.getPlace();
927             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "place", thePlace), currentHashCode, thePlace);
928         }
929         {
930             String theParty;
931             theParty = this.getParty();
932             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "party", theParty), currentHashCode, theParty);
933         }
934         {
935             String theElectionRegion;
936             theElectionRegion = this.getElectionRegion();
937             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "electionRegion", theElectionRegion), currentHashCode, theElectionRegion);
938         }
939         {
940             String theStatus;
941             theStatus = this.getStatus();
942             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus);
943         }
944         {
945             String theImageUrl192;
946             theImageUrl192 = this.getImageUrl192();
947             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "imageUrl192", theImageUrl192), currentHashCode, theImageUrl192);
948         }
949         {
950             String theImageUrlMax;
951             theImageUrlMax = this.getImageUrlMax();
952             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "imageUrlMax", theImageUrlMax), currentHashCode, theImageUrlMax);
953         }
954         {
955             String theImageUrl80;
956             theImageUrl80 = this.getImageUrl80();
957             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "imageUrl80", theImageUrl80), currentHashCode, theImageUrl80);
958         }
959         {
960             String thePersonUrlXml;
961             thePersonUrlXml = this.getPersonUrlXml();
962             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "personUrlXml", thePersonUrlXml), currentHashCode, thePersonUrlXml);
963         }
964         {
965             PersonAssignmentData thePersonAssignmentData;
966             thePersonAssignmentData = this.getPersonAssignmentData();
967             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "personAssignmentData", thePersonAssignmentData), currentHashCode, thePersonAssignmentData);
968         }
969         {
970             PersonDetailData thePersonDetailData;
971             thePersonDetailData = this.getPersonDetailData();
972             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "personDetailData", thePersonDetailData), currentHashCode, thePersonDetailData);
973         }
974         return currentHashCode;
975     }
976 
977     public int hashCode() {
978         final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
979         return this.hashCode(null, strategy);
980     }
981 
982 }