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:58 PM CEST 
6   //
7   
8   
9   package com.hack23.cia.model.external.riksdagen.votering.impl;
10  
11  import java.io.Serializable;
12  import java.math.BigInteger;
13  import java.util.Date;
14  import javax.persistence.AttributeOverride;
15  import javax.persistence.AttributeOverrides;
16  import javax.persistence.Basic;
17  import javax.persistence.Column;
18  import javax.persistence.EmbeddedId;
19  import javax.persistence.Entity;
20  import javax.persistence.EnumType;
21  import javax.persistence.Enumerated;
22  import javax.persistence.Inheritance;
23  import javax.persistence.InheritanceType;
24  import javax.persistence.Table;
25  import javax.persistence.Temporal;
26  import javax.persistence.TemporalType;
27  import javax.xml.bind.annotation.XmlAccessType;
28  import javax.xml.bind.annotation.XmlAccessorType;
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.Adapter3;
46  
47  
48  /**
49   * <p>Java class for VoteData complex type.
50   * 
51   * <p>The following schema fragment specifies the expected content contained within this class.
52   * 
53   * <pre>
54   * &lt;complexType name="VoteData"&gt;
55   *   &lt;complexContent&gt;
56   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
57   *       &lt;sequence&gt;
58   *         &lt;element name="banknummer" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
59   *         &lt;element name="beteckning" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
60   *         &lt;element name="efternamn" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
61   *         &lt;element name="fodd" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
62   *         &lt;element name="fornamn" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
63   *         &lt;element name="iort" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
64   *         &lt;element name="kon" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
65   *         &lt;element name="namn" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
66   *         &lt;element name="datum" type="{http://www.w3.org/2001/XMLSchema}date"/&gt;
67   *         &lt;element name="parti" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
68   *         &lt;element name="rm" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
69   *         &lt;element name="rost" type="{http://votering.riksdagen.external.model.cia.hack23.com/impl}VoteDecision"/&gt;
70   *         &lt;element name="votering" type="{http://votering.riksdagen.external.model.cia.hack23.com/impl}BallotType"/&gt;
71   *         &lt;element name="valkrets" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
72   *         &lt;element name="valkretsnummer" type="{http://www.w3.org/2001/XMLSchema}integer"/&gt;
73   *         &lt;element name="embeddedId" type="{http://votering.riksdagen.external.model.cia.hack23.com/impl}VoteDataEmbeddedId"/&gt;
74   *       &lt;/sequence&gt;
75   *     &lt;/restriction&gt;
76   *   &lt;/complexContent&gt;
77   * &lt;/complexType&gt;
78   * </pre>
79   * 
80   * 
81   */
82  @XmlAccessorType(XmlAccessType.FIELD)
83  @XmlType(name = "VoteData", propOrder = {
84      "bankNumber",
85      "label",
86      "lastName",
87      "bornYear",
88      "firstName",
89      "place",
90      "gender",
91      "fullName",
92      "voteDate",
93      "party",
94      "rm",
95      "vote",
96      "ballotType",
97      "electoralRegion",
98      "electoralRegionNumber",
99      "embeddedId"
100 })
101 @Entity(name = "VoteData")
102 @Table(name = "VOTE_DATA")
103 @Inheritance(strategy = InheritanceType.JOINED)
104 public class VoteData
105     implements Serializable, ModelObject, Equals, HashCode, ToString
106 {
107 
108     @XmlElement(name = "banknummer", required = true)
109     protected String bankNumber;
110     @XmlElement(name = "beteckning", required = true)
111     protected String label;
112     @XmlElement(name = "efternamn", required = true)
113     protected String lastName;
114     @XmlElement(name = "fodd")
115     protected int bornYear;
116     @XmlElement(name = "fornamn", required = true)
117     protected String firstName;
118     @XmlElement(name = "iort", required = true)
119     protected String place;
120     @XmlElement(name = "kon", required = true)
121     protected String gender;
122     @XmlElement(name = "namn", required = true)
123     protected String fullName;
124     @XmlElement(name = "datum", required = true, type = String.class)
125     @XmlJavaTypeAdapter(Adapter3 .class)
126     @XmlSchemaType(name = "date")
127     protected Date voteDate;
128     @XmlElement(name = "parti", required = true)
129     protected String party;
130     @XmlElement(required = true)
131     protected String rm;
132     @XmlElement(name = "rost", required = true)
133     @XmlSchemaType(name = "string")
134     protected VoteDecision vote;
135     @XmlElement(name = "votering", required = true)
136     @XmlSchemaType(name = "string")
137     protected BallotType ballotType;
138     @XmlElement(name = "valkrets", required = true)
139     protected String electoralRegion;
140     @XmlElement(name = "valkretsnummer", required = true)
141     protected BigInteger electoralRegionNumber;
142     @XmlElement(required = true)
143     protected VoteDataEmbeddedId embeddedId;
144 
145     /**
146      * Gets the value of the bankNumber property.
147      * 
148      * @return
149      *     possible object is
150      *     {@link String }
151      *     
152      */
153     @Basic
154     @Column(name = "BANK_NUMBER", length = 255)
155     public String getBankNumber() {
156         return bankNumber;
157     }
158 
159     /**
160      * Sets the value of the bankNumber property.
161      * 
162      * @param value
163      *     allowed object is
164      *     {@link String }
165      *     
166      */
167     public void setBankNumber(String value) {
168         this.bankNumber = value;
169     }
170 
171     /**
172      * Gets the value of the label property.
173      * 
174      * @return
175      *     possible object is
176      *     {@link String }
177      *     
178      */
179     @Basic
180     @Column(name = "LABEL", length = 255)
181     public String getLabel() {
182         return label;
183     }
184 
185     /**
186      * Sets the value of the label property.
187      * 
188      * @param value
189      *     allowed object is
190      *     {@link String }
191      *     
192      */
193     public void setLabel(String value) {
194         this.label = value;
195     }
196 
197     /**
198      * Gets the value of the lastName property.
199      * 
200      * @return
201      *     possible object is
202      *     {@link String }
203      *     
204      */
205     @Basic
206     @Column(name = "LAST_NAME", length = 255)
207     public String getLastName() {
208         return lastName;
209     }
210 
211     /**
212      * Sets the value of the lastName property.
213      * 
214      * @param value
215      *     allowed object is
216      *     {@link String }
217      *     
218      */
219     public void setLastName(String value) {
220         this.lastName = value;
221     }
222 
223     /**
224      * Gets the value of the bornYear property.
225      * 
226      */
227     @Basic
228     @Column(name = "BORN_YEAR", precision = 10, scale = 0)
229     public int getBornYear() {
230         return bornYear;
231     }
232 
233     /**
234      * Sets the value of the bornYear property.
235      * 
236      */
237     public void setBornYear(int value) {
238         this.bornYear = value;
239     }
240 
241     /**
242      * Gets the value of the firstName property.
243      * 
244      * @return
245      *     possible object is
246      *     {@link String }
247      *     
248      */
249     @Basic
250     @Column(name = "FIRST_NAME", length = 255)
251     public String getFirstName() {
252         return firstName;
253     }
254 
255     /**
256      * Sets the value of the firstName property.
257      * 
258      * @param value
259      *     allowed object is
260      *     {@link String }
261      *     
262      */
263     public void setFirstName(String value) {
264         this.firstName = value;
265     }
266 
267     /**
268      * Gets the value of the place property.
269      * 
270      * @return
271      *     possible object is
272      *     {@link String }
273      *     
274      */
275     @Basic
276     @Column(name = "PLACE", length = 255)
277     public String getPlace() {
278         return place;
279     }
280 
281     /**
282      * Sets the value of the place property.
283      * 
284      * @param value
285      *     allowed object is
286      *     {@link String }
287      *     
288      */
289     public void setPlace(String value) {
290         this.place = value;
291     }
292 
293     /**
294      * Gets the value of the gender property.
295      * 
296      * @return
297      *     possible object is
298      *     {@link String }
299      *     
300      */
301     @Basic
302     @Column(name = "GENDER", length = 255)
303     public String getGender() {
304         return gender;
305     }
306 
307     /**
308      * Sets the value of the gender property.
309      * 
310      * @param value
311      *     allowed object is
312      *     {@link String }
313      *     
314      */
315     public void setGender(String value) {
316         this.gender = value;
317     }
318 
319     /**
320      * Gets the value of the fullName property.
321      * 
322      * @return
323      *     possible object is
324      *     {@link String }
325      *     
326      */
327     @Basic
328     @Column(name = "FULL_NAME", length = 255)
329     public String getFullName() {
330         return fullName;
331     }
332 
333     /**
334      * Sets the value of the fullName property.
335      * 
336      * @param value
337      *     allowed object is
338      *     {@link String }
339      *     
340      */
341     public void setFullName(String value) {
342         this.fullName = value;
343     }
344 
345     /**
346      * Gets the value of the voteDate property.
347      * 
348      * @return
349      *     possible object is
350      *     {@link String }
351      *     
352      */
353     @Basic
354     @Column(name = "VOTE_DATE")
355     @Temporal(TemporalType.DATE)
356     public Date getVoteDate() {
357         return voteDate;
358     }
359 
360     /**
361      * Sets the value of the voteDate property.
362      * 
363      * @param value
364      *     allowed object is
365      *     {@link String }
366      *     
367      */
368     public void setVoteDate(Date value) {
369         this.voteDate = value;
370     }
371 
372     /**
373      * Gets the value of the party property.
374      * 
375      * @return
376      *     possible object is
377      *     {@link String }
378      *     
379      */
380     @Basic
381     @Column(name = "PARTY", length = 255)
382     public String getParty() {
383         return party;
384     }
385 
386     /**
387      * Sets the value of the party property.
388      * 
389      * @param value
390      *     allowed object is
391      *     {@link String }
392      *     
393      */
394     public void setParty(String value) {
395         this.party = value;
396     }
397 
398     /**
399      * Gets the value of the rm property.
400      * 
401      * @return
402      *     possible object is
403      *     {@link String }
404      *     
405      */
406     @Basic
407     @Column(name = "RM", length = 255)
408     public String getRm() {
409         return rm;
410     }
411 
412     /**
413      * Sets the value of the rm property.
414      * 
415      * @param value
416      *     allowed object is
417      *     {@link String }
418      *     
419      */
420     public void setRm(String value) {
421         this.rm = value;
422     }
423 
424     /**
425      * Gets the value of the vote property.
426      * 
427      * @return
428      *     possible object is
429      *     {@link VoteDecision }
430      *     
431      */
432     @Basic
433     @Column(name = "VOTE", length = 255)
434     @Enumerated(EnumType.STRING)
435     public VoteDecision getVote() {
436         return vote;
437     }
438 
439     /**
440      * Sets the value of the vote property.
441      * 
442      * @param value
443      *     allowed object is
444      *     {@link VoteDecision }
445      *     
446      */
447     public void setVote(VoteDecision value) {
448         this.vote = value;
449     }
450 
451     /**
452      * Gets the value of the ballotType property.
453      * 
454      * @return
455      *     possible object is
456      *     {@link BallotType }
457      *     
458      */
459     @Basic
460     @Column(name = "BALLOT_TYPE", length = 255)
461     @Enumerated(EnumType.STRING)
462     public BallotType getBallotType() {
463         return ballotType;
464     }
465 
466     /**
467      * Sets the value of the ballotType property.
468      * 
469      * @param value
470      *     allowed object is
471      *     {@link BallotType }
472      *     
473      */
474     public void setBallotType(BallotType value) {
475         this.ballotType = value;
476     }
477 
478     /**
479      * Gets the value of the electoralRegion property.
480      * 
481      * @return
482      *     possible object is
483      *     {@link String }
484      *     
485      */
486     @Basic
487     @Column(name = "ELECTORAL_REGION", length = 255)
488     public String getElectoralRegion() {
489         return electoralRegion;
490     }
491 
492     /**
493      * Sets the value of the electoralRegion property.
494      * 
495      * @param value
496      *     allowed object is
497      *     {@link String }
498      *     
499      */
500     public void setElectoralRegion(String value) {
501         this.electoralRegion = value;
502     }
503 
504     /**
505      * Gets the value of the electoralRegionNumber property.
506      * 
507      * @return
508      *     possible object is
509      *     {@link BigInteger }
510      *     
511      */
512     @Basic
513     @Column(name = "ELECTORAL_REGION_NUMBER", precision = 20, scale = 0)
514     public BigInteger getElectoralRegionNumber() {
515         return electoralRegionNumber;
516     }
517 
518     /**
519      * Sets the value of the electoralRegionNumber property.
520      * 
521      * @param value
522      *     allowed object is
523      *     {@link BigInteger }
524      *     
525      */
526     public void setElectoralRegionNumber(BigInteger value) {
527         this.electoralRegionNumber = value;
528     }
529 
530     /**
531      * Gets the value of the embeddedId property.
532      * 
533      * @return
534      *     possible object is
535      *     {@link VoteDataEmbeddedId }
536      *     
537      */
538     @EmbeddedId
539     @AttributeOverrides({
540         @AttributeOverride(name = "issue", column = @Column(name = "EMBEDDED_ID_ISSUE", length = 255)),
541         @AttributeOverride(name = "ballotId", column = @Column(name = "EMBEDDED_ID_BALLOT_ID", length = 255)),
542         @AttributeOverride(name = "intressentId", column = @Column(name = "EMBEDDED_ID_INTRESSENT_ID", length = 255)),
543         @AttributeOverride(name = "concern", column = @Column(name = "EMBEDDED_ID_CONCERN", length = 255))
544     })
545     public VoteDataEmbeddedId getEmbeddedId() {
546         return embeddedId;
547     }
548 
549     /**
550      * Sets the value of the embeddedId property.
551      * 
552      * @param value
553      *     allowed object is
554      *     {@link VoteDataEmbeddedId }
555      *     
556      */
557     public void setEmbeddedId(VoteDataEmbeddedId value) {
558         this.embeddedId = value;
559     }
560 
561     public VoteData withBankNumber(String value) {
562         setBankNumber(value);
563         return this;
564     }
565 
566     public VoteData withLabel(String value) {
567         setLabel(value);
568         return this;
569     }
570 
571     public VoteData withLastName(String value) {
572         setLastName(value);
573         return this;
574     }
575 
576     public VoteData withBornYear(int value) {
577         setBornYear(value);
578         return this;
579     }
580 
581     public VoteData withFirstName(String value) {
582         setFirstName(value);
583         return this;
584     }
585 
586     public VoteData withPlace(String value) {
587         setPlace(value);
588         return this;
589     }
590 
591     public VoteData withGender(String value) {
592         setGender(value);
593         return this;
594     }
595 
596     public VoteData withFullName(String value) {
597         setFullName(value);
598         return this;
599     }
600 
601     public VoteData withVoteDate(Date value) {
602         setVoteDate(value);
603         return this;
604     }
605 
606     public VoteData withParty(String value) {
607         setParty(value);
608         return this;
609     }
610 
611     public VoteData withRm(String value) {
612         setRm(value);
613         return this;
614     }
615 
616     public VoteData withVote(VoteDecision value) {
617         setVote(value);
618         return this;
619     }
620 
621     public VoteData withBallotType(BallotType value) {
622         setBallotType(value);
623         return this;
624     }
625 
626     public VoteData withElectoralRegion(String value) {
627         setElectoralRegion(value);
628         return this;
629     }
630 
631     public VoteData withElectoralRegionNumber(BigInteger value) {
632         setElectoralRegionNumber(value);
633         return this;
634     }
635 
636     public VoteData withEmbeddedId(VoteDataEmbeddedId value) {
637         setEmbeddedId(value);
638         return this;
639     }
640 
641     public String toString() {
642         final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
643         final StringBuilder buffer = new StringBuilder();
644         append(null, buffer, strategy);
645         return buffer.toString();
646     }
647 
648     public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
649         strategy.appendStart(locator, this, buffer);
650         appendFields(locator, buffer, strategy);
651         strategy.appendEnd(locator, this, buffer);
652         return buffer;
653     }
654 
655     public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
656         {
657             String theBankNumber;
658             theBankNumber = this.getBankNumber();
659             strategy.appendField(locator, this, "bankNumber", buffer, theBankNumber);
660         }
661         {
662             String theLabel;
663             theLabel = this.getLabel();
664             strategy.appendField(locator, this, "label", buffer, theLabel);
665         }
666         {
667             String theLastName;
668             theLastName = this.getLastName();
669             strategy.appendField(locator, this, "lastName", buffer, theLastName);
670         }
671         {
672             int theBornYear;
673             theBornYear = this.getBornYear();
674             strategy.appendField(locator, this, "bornYear", buffer, theBornYear);
675         }
676         {
677             String theFirstName;
678             theFirstName = this.getFirstName();
679             strategy.appendField(locator, this, "firstName", buffer, theFirstName);
680         }
681         {
682             String thePlace;
683             thePlace = this.getPlace();
684             strategy.appendField(locator, this, "place", buffer, thePlace);
685         }
686         {
687             String theGender;
688             theGender = this.getGender();
689             strategy.appendField(locator, this, "gender", buffer, theGender);
690         }
691         {
692             String theFullName;
693             theFullName = this.getFullName();
694             strategy.appendField(locator, this, "fullName", buffer, theFullName);
695         }
696         {
697             Date theVoteDate;
698             theVoteDate = this.getVoteDate();
699             strategy.appendField(locator, this, "voteDate", buffer, theVoteDate);
700         }
701         {
702             String theParty;
703             theParty = this.getParty();
704             strategy.appendField(locator, this, "party", buffer, theParty);
705         }
706         {
707             String theRm;
708             theRm = this.getRm();
709             strategy.appendField(locator, this, "rm", buffer, theRm);
710         }
711         {
712             VoteDecision theVote;
713             theVote = this.getVote();
714             strategy.appendField(locator, this, "vote", buffer, theVote);
715         }
716         {
717             BallotType theBallotType;
718             theBallotType = this.getBallotType();
719             strategy.appendField(locator, this, "ballotType", buffer, theBallotType);
720         }
721         {
722             String theElectoralRegion;
723             theElectoralRegion = this.getElectoralRegion();
724             strategy.appendField(locator, this, "electoralRegion", buffer, theElectoralRegion);
725         }
726         {
727             BigInteger theElectoralRegionNumber;
728             theElectoralRegionNumber = this.getElectoralRegionNumber();
729             strategy.appendField(locator, this, "electoralRegionNumber", buffer, theElectoralRegionNumber);
730         }
731         {
732             VoteDataEmbeddedId theEmbeddedId;
733             theEmbeddedId = this.getEmbeddedId();
734             strategy.appendField(locator, this, "embeddedId", buffer, theEmbeddedId);
735         }
736         return buffer;
737     }
738 
739     public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
740         if ((object == null)||(this.getClass()!= object.getClass())) {
741             return false;
742         }
743         if (this == object) {
744             return true;
745         }
746         final VoteData that = ((VoteData) object);
747         {
748             String lhsBankNumber;
749             lhsBankNumber = this.getBankNumber();
750             String rhsBankNumber;
751             rhsBankNumber = that.getBankNumber();
752             if (!strategy.equals(LocatorUtils.property(thisLocator, "bankNumber", lhsBankNumber), LocatorUtils.property(thatLocator, "bankNumber", rhsBankNumber), lhsBankNumber, rhsBankNumber)) {
753                 return false;
754             }
755         }
756         {
757             String lhsLabel;
758             lhsLabel = this.getLabel();
759             String rhsLabel;
760             rhsLabel = that.getLabel();
761             if (!strategy.equals(LocatorUtils.property(thisLocator, "label", lhsLabel), LocatorUtils.property(thatLocator, "label", rhsLabel), lhsLabel, rhsLabel)) {
762                 return false;
763             }
764         }
765         {
766             String lhsLastName;
767             lhsLastName = this.getLastName();
768             String rhsLastName;
769             rhsLastName = that.getLastName();
770             if (!strategy.equals(LocatorUtils.property(thisLocator, "lastName", lhsLastName), LocatorUtils.property(thatLocator, "lastName", rhsLastName), lhsLastName, rhsLastName)) {
771                 return false;
772             }
773         }
774         {
775             int lhsBornYear;
776             lhsBornYear = this.getBornYear();
777             int rhsBornYear;
778             rhsBornYear = that.getBornYear();
779             if (!strategy.equals(LocatorUtils.property(thisLocator, "bornYear", lhsBornYear), LocatorUtils.property(thatLocator, "bornYear", rhsBornYear), lhsBornYear, rhsBornYear)) {
780                 return false;
781             }
782         }
783         {
784             String lhsFirstName;
785             lhsFirstName = this.getFirstName();
786             String rhsFirstName;
787             rhsFirstName = that.getFirstName();
788             if (!strategy.equals(LocatorUtils.property(thisLocator, "firstName", lhsFirstName), LocatorUtils.property(thatLocator, "firstName", rhsFirstName), lhsFirstName, rhsFirstName)) {
789                 return false;
790             }
791         }
792         {
793             String lhsPlace;
794             lhsPlace = this.getPlace();
795             String rhsPlace;
796             rhsPlace = that.getPlace();
797             if (!strategy.equals(LocatorUtils.property(thisLocator, "place", lhsPlace), LocatorUtils.property(thatLocator, "place", rhsPlace), lhsPlace, rhsPlace)) {
798                 return false;
799             }
800         }
801         {
802             String lhsGender;
803             lhsGender = this.getGender();
804             String rhsGender;
805             rhsGender = that.getGender();
806             if (!strategy.equals(LocatorUtils.property(thisLocator, "gender", lhsGender), LocatorUtils.property(thatLocator, "gender", rhsGender), lhsGender, rhsGender)) {
807                 return false;
808             }
809         }
810         {
811             String lhsFullName;
812             lhsFullName = this.getFullName();
813             String rhsFullName;
814             rhsFullName = that.getFullName();
815             if (!strategy.equals(LocatorUtils.property(thisLocator, "fullName", lhsFullName), LocatorUtils.property(thatLocator, "fullName", rhsFullName), lhsFullName, rhsFullName)) {
816                 return false;
817             }
818         }
819         {
820             Date lhsVoteDate;
821             lhsVoteDate = this.getVoteDate();
822             Date rhsVoteDate;
823             rhsVoteDate = that.getVoteDate();
824             if (!strategy.equals(LocatorUtils.property(thisLocator, "voteDate", lhsVoteDate), LocatorUtils.property(thatLocator, "voteDate", rhsVoteDate), lhsVoteDate, rhsVoteDate)) {
825                 return false;
826             }
827         }
828         {
829             String lhsParty;
830             lhsParty = this.getParty();
831             String rhsParty;
832             rhsParty = that.getParty();
833             if (!strategy.equals(LocatorUtils.property(thisLocator, "party", lhsParty), LocatorUtils.property(thatLocator, "party", rhsParty), lhsParty, rhsParty)) {
834                 return false;
835             }
836         }
837         {
838             String lhsRm;
839             lhsRm = this.getRm();
840             String rhsRm;
841             rhsRm = that.getRm();
842             if (!strategy.equals(LocatorUtils.property(thisLocator, "rm", lhsRm), LocatorUtils.property(thatLocator, "rm", rhsRm), lhsRm, rhsRm)) {
843                 return false;
844             }
845         }
846         {
847             VoteDecision lhsVote;
848             lhsVote = this.getVote();
849             VoteDecision rhsVote;
850             rhsVote = that.getVote();
851             if (!strategy.equals(LocatorUtils.property(thisLocator, "vote", lhsVote), LocatorUtils.property(thatLocator, "vote", rhsVote), lhsVote, rhsVote)) {
852                 return false;
853             }
854         }
855         {
856             BallotType lhsBallotType;
857             lhsBallotType = this.getBallotType();
858             BallotType rhsBallotType;
859             rhsBallotType = that.getBallotType();
860             if (!strategy.equals(LocatorUtils.property(thisLocator, "ballotType", lhsBallotType), LocatorUtils.property(thatLocator, "ballotType", rhsBallotType), lhsBallotType, rhsBallotType)) {
861                 return false;
862             }
863         }
864         {
865             String lhsElectoralRegion;
866             lhsElectoralRegion = this.getElectoralRegion();
867             String rhsElectoralRegion;
868             rhsElectoralRegion = that.getElectoralRegion();
869             if (!strategy.equals(LocatorUtils.property(thisLocator, "electoralRegion", lhsElectoralRegion), LocatorUtils.property(thatLocator, "electoralRegion", rhsElectoralRegion), lhsElectoralRegion, rhsElectoralRegion)) {
870                 return false;
871             }
872         }
873         {
874             BigInteger lhsElectoralRegionNumber;
875             lhsElectoralRegionNumber = this.getElectoralRegionNumber();
876             BigInteger rhsElectoralRegionNumber;
877             rhsElectoralRegionNumber = that.getElectoralRegionNumber();
878             if (!strategy.equals(LocatorUtils.property(thisLocator, "electoralRegionNumber", lhsElectoralRegionNumber), LocatorUtils.property(thatLocator, "electoralRegionNumber", rhsElectoralRegionNumber), lhsElectoralRegionNumber, rhsElectoralRegionNumber)) {
879                 return false;
880             }
881         }
882         {
883             VoteDataEmbeddedId lhsEmbeddedId;
884             lhsEmbeddedId = this.getEmbeddedId();
885             VoteDataEmbeddedId rhsEmbeddedId;
886             rhsEmbeddedId = that.getEmbeddedId();
887             if (!strategy.equals(LocatorUtils.property(thisLocator, "embeddedId", lhsEmbeddedId), LocatorUtils.property(thatLocator, "embeddedId", rhsEmbeddedId), lhsEmbeddedId, rhsEmbeddedId)) {
888                 return false;
889             }
890         }
891         return true;
892     }
893 
894     public boolean equals(Object object) {
895         final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
896         return equals(null, null, object, strategy);
897     }
898 
899     public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
900         int currentHashCode = 1;
901         {
902             String theBankNumber;
903             theBankNumber = this.getBankNumber();
904             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bankNumber", theBankNumber), currentHashCode, theBankNumber);
905         }
906         {
907             String theLabel;
908             theLabel = this.getLabel();
909             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "label", theLabel), currentHashCode, theLabel);
910         }
911         {
912             String theLastName;
913             theLastName = this.getLastName();
914             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastName", theLastName), currentHashCode, theLastName);
915         }
916         {
917             int theBornYear;
918             theBornYear = this.getBornYear();
919             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bornYear", theBornYear), currentHashCode, theBornYear);
920         }
921         {
922             String theFirstName;
923             theFirstName = this.getFirstName();
924             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "firstName", theFirstName), currentHashCode, theFirstName);
925         }
926         {
927             String thePlace;
928             thePlace = this.getPlace();
929             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "place", thePlace), currentHashCode, thePlace);
930         }
931         {
932             String theGender;
933             theGender = this.getGender();
934             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gender", theGender), currentHashCode, theGender);
935         }
936         {
937             String theFullName;
938             theFullName = this.getFullName();
939             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "fullName", theFullName), currentHashCode, theFullName);
940         }
941         {
942             Date theVoteDate;
943             theVoteDate = this.getVoteDate();
944             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "voteDate", theVoteDate), currentHashCode, theVoteDate);
945         }
946         {
947             String theParty;
948             theParty = this.getParty();
949             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "party", theParty), currentHashCode, theParty);
950         }
951         {
952             String theRm;
953             theRm = this.getRm();
954             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rm", theRm), currentHashCode, theRm);
955         }
956         {
957             VoteDecision theVote;
958             theVote = this.getVote();
959             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "vote", theVote), currentHashCode, theVote);
960         }
961         {
962             BallotType theBallotType;
963             theBallotType = this.getBallotType();
964             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ballotType", theBallotType), currentHashCode, theBallotType);
965         }
966         {
967             String theElectoralRegion;
968             theElectoralRegion = this.getElectoralRegion();
969             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "electoralRegion", theElectoralRegion), currentHashCode, theElectoralRegion);
970         }
971         {
972             BigInteger theElectoralRegionNumber;
973             theElectoralRegionNumber = this.getElectoralRegionNumber();
974             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "electoralRegionNumber", theElectoralRegionNumber), currentHashCode, theElectoralRegionNumber);
975         }
976         {
977             VoteDataEmbeddedId theEmbeddedId;
978             theEmbeddedId = this.getEmbeddedId();
979             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "embeddedId", theEmbeddedId), currentHashCode, theEmbeddedId);
980         }
981         return currentHashCode;
982     }
983 
984     public int hashCode() {
985         final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
986         return this.hashCode(null, strategy);
987     }
988 
989 }