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:23:18 PM CEST 
6   //
7   
8   
9   package com.hack23.cia.model.internal.application.data.committee.impl;
10  
11  import java.io.Serializable;
12  import java.math.BigDecimal;
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.Inheritance;
21  import javax.persistence.InheritanceType;
22  import javax.persistence.Table;
23  import javax.persistence.Temporal;
24  import javax.persistence.TemporalType;
25  import javax.xml.bind.annotation.XmlAccessType;
26  import javax.xml.bind.annotation.XmlAccessorType;
27  import javax.xml.bind.annotation.XmlElement;
28  import javax.xml.bind.annotation.XmlSchemaType;
29  import javax.xml.bind.annotation.XmlType;
30  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
31  import com.hack23.cia.model.common.api.ModelObject;
32  import org.jvnet.jaxb2_commons.lang.Equals;
33  import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
34  import org.jvnet.jaxb2_commons.lang.HashCode;
35  import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
36  import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
37  import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
38  import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
39  import org.jvnet.jaxb2_commons.lang.ToString;
40  import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
41  import org.jvnet.jaxb2_commons.locator.ObjectLocator;
42  import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
43  import org.w3._2001.xmlschema.Adapter3;
44  
45  
46  /**
47   * <p>Java class for ViewRiksdagenVoteDataBallotSummary complex type.
48   * 
49   * <p>The following schema fragment specifies the expected content contained within this class.
50   * 
51   * <pre>
52   * &lt;complexType name="ViewRiksdagenVoteDataBallotSummary"&gt;
53   *   &lt;complexContent&gt;
54   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
55   *       &lt;sequence&gt;
56   *         &lt;element name="embeddedId" type="{http://committee.data.application.internal.model.cia.hack23.com/impl}RiksdagenVoteDataBallotEmbeddedId"/&gt;
57   *         &lt;element name="vote_date" type="{http://www.w3.org/2001/XMLSchema}date"/&gt;
58   *         &lt;element name="rm" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
59   *         &lt;element name="ballot_type" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
60   *         &lt;element name="label" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
61   *         &lt;element name="avg_born_year" type="{http://www.w3.org/2001/XMLSchema}decimal"/&gt;
62   *         &lt;element name="total_votes" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
63   *         &lt;element name="yes_votes" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
64   *         &lt;element name="no_votes" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
65   *         &lt;element name="abstain_votes" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
66   *         &lt;element name="absent_votes" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
67   *         &lt;element name="approved" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
68   *         &lt;element name="no_winner" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
69   *         &lt;element name="percentage_yes" type="{http://www.w3.org/2001/XMLSchema}decimal"/&gt;
70   *         &lt;element name="percentage_no" type="{http://www.w3.org/2001/XMLSchema}decimal"/&gt;
71   *         &lt;element name="percentage_absent" type="{http://www.w3.org/2001/XMLSchema}decimal"/&gt;
72   *         &lt;element name="percentage_abstain" type="{http://www.w3.org/2001/XMLSchema}decimal"/&gt;
73   *         &lt;element name="percentage_male" type="{http://www.w3.org/2001/XMLSchema}decimal"/&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 = "ViewRiksdagenVoteDataBallotSummary", propOrder = {
84      "embeddedId",
85      "voteDate",
86      "rm",
87      "ballotType",
88      "label",
89      "avgBornYear",
90      "totalVotes",
91      "yesVotes",
92      "noVotes",
93      "abstainVotes",
94      "absentVotes",
95      "approved",
96      "noWinner",
97      "percentageYes",
98      "percentageNo",
99      "percentageAbsent",
100     "percentageAbstain",
101     "percentageMale"
102 })
103 @Entity(name = "ViewRiksdagenVoteDataBallotSummary")
104 @Table(name = "View_Riksdagen_Vote_Data_Ballot_Summary")
105 @Inheritance(strategy = InheritanceType.JOINED)
106 public class ViewRiksdagenVoteDataBallotSummary
107     implements Serializable, ModelObject, Equals, HashCode, ToString
108 {
109 
110     private final static long serialVersionUID = 1L;
111     @XmlElement(required = true)
112     protected RiksdagenVoteDataBallotEmbeddedId embeddedId;
113     @XmlElement(name = "vote_date", required = true, type = String.class)
114     @XmlJavaTypeAdapter(Adapter3 .class)
115     @XmlSchemaType(name = "date")
116     protected Date voteDate;
117     @XmlElement(required = true)
118     protected String rm;
119     @XmlElement(name = "ballot_type", required = true)
120     protected String ballotType;
121     @XmlElement(required = true)
122     protected String label;
123     @XmlElement(name = "avg_born_year", required = true)
124     protected BigDecimal avgBornYear;
125     @XmlElement(name = "total_votes")
126     protected long totalVotes;
127     @XmlElement(name = "yes_votes")
128     protected long yesVotes;
129     @XmlElement(name = "no_votes")
130     protected long noVotes;
131     @XmlElement(name = "abstain_votes")
132     protected long abstainVotes;
133     @XmlElement(name = "absent_votes")
134     protected long absentVotes;
135     protected boolean approved;
136     @XmlElement(name = "no_winner")
137     protected boolean noWinner;
138     @XmlElement(name = "percentage_yes", required = true)
139     protected BigDecimal percentageYes;
140     @XmlElement(name = "percentage_no", required = true)
141     protected BigDecimal percentageNo;
142     @XmlElement(name = "percentage_absent", required = true)
143     protected BigDecimal percentageAbsent;
144     @XmlElement(name = "percentage_abstain", required = true)
145     protected BigDecimal percentageAbstain;
146     @XmlElement(name = "percentage_male", required = true)
147     protected BigDecimal percentageMale;
148 
149     /**
150      * Gets the value of the embeddedId property.
151      * 
152      * @return
153      *     possible object is
154      *     {@link RiksdagenVoteDataBallotEmbeddedId }
155      *     
156      */
157     @EmbeddedId
158     @AttributeOverrides({
159         @AttributeOverride(name = "ballotId", column = @Column(name = "EMBEDDED_ID_BALLOT_ID", length = 255)),
160         @AttributeOverride(name = "concern", column = @Column(name = "EMBEDDED_ID_CONCERN", length = 255)),
161         @AttributeOverride(name = "issue", column = @Column(name = "EMBEDDED_ID_ISSUE", length = 255))
162     })
163     public RiksdagenVoteDataBallotEmbeddedId getEmbeddedId() {
164         return embeddedId;
165     }
166 
167     /**
168      * Sets the value of the embeddedId property.
169      * 
170      * @param value
171      *     allowed object is
172      *     {@link RiksdagenVoteDataBallotEmbeddedId }
173      *     
174      */
175     public void setEmbeddedId(RiksdagenVoteDataBallotEmbeddedId value) {
176         this.embeddedId = value;
177     }
178 
179     /**
180      * Gets the value of the voteDate property.
181      * 
182      * @return
183      *     possible object is
184      *     {@link String }
185      *     
186      */
187     @Basic
188     @Column(name = "VOTE_DATE")
189     @Temporal(TemporalType.DATE)
190     public Date getVoteDate() {
191         return voteDate;
192     }
193 
194     /**
195      * Sets the value of the voteDate property.
196      * 
197      * @param value
198      *     allowed object is
199      *     {@link String }
200      *     
201      */
202     public void setVoteDate(Date value) {
203         this.voteDate = value;
204     }
205 
206     /**
207      * Gets the value of the rm property.
208      * 
209      * @return
210      *     possible object is
211      *     {@link String }
212      *     
213      */
214     @Basic
215     @Column(name = "RM", length = 255)
216     public String getRm() {
217         return rm;
218     }
219 
220     /**
221      * Sets the value of the rm property.
222      * 
223      * @param value
224      *     allowed object is
225      *     {@link String }
226      *     
227      */
228     public void setRm(String value) {
229         this.rm = value;
230     }
231 
232     /**
233      * Gets the value of the ballotType property.
234      * 
235      * @return
236      *     possible object is
237      *     {@link String }
238      *     
239      */
240     @Basic
241     @Column(name = "BALLOT_TYPE", length = 255)
242     public String getBallotType() {
243         return ballotType;
244     }
245 
246     /**
247      * Sets the value of the ballotType property.
248      * 
249      * @param value
250      *     allowed object is
251      *     {@link String }
252      *     
253      */
254     public void setBallotType(String value) {
255         this.ballotType = value;
256     }
257 
258     /**
259      * Gets the value of the label property.
260      * 
261      * @return
262      *     possible object is
263      *     {@link String }
264      *     
265      */
266     @Basic
267     @Column(name = "LABEL", length = 255)
268     public String getLabel() {
269         return label;
270     }
271 
272     /**
273      * Sets the value of the label property.
274      * 
275      * @param value
276      *     allowed object is
277      *     {@link String }
278      *     
279      */
280     public void setLabel(String value) {
281         this.label = value;
282     }
283 
284     /**
285      * Gets the value of the avgBornYear property.
286      * 
287      * @return
288      *     possible object is
289      *     {@link BigDecimal }
290      *     
291      */
292     @Basic
293     @Column(name = "AVG_BORN_YEAR", precision = 20, scale = 10)
294     public BigDecimal getAvgBornYear() {
295         return avgBornYear;
296     }
297 
298     /**
299      * Sets the value of the avgBornYear property.
300      * 
301      * @param value
302      *     allowed object is
303      *     {@link BigDecimal }
304      *     
305      */
306     public void setAvgBornYear(BigDecimal value) {
307         this.avgBornYear = value;
308     }
309 
310     /**
311      * Gets the value of the totalVotes property.
312      * 
313      */
314     @Basic
315     @Column(name = "TOTAL_VOTES", precision = 20, scale = 0)
316     public long getTotalVotes() {
317         return totalVotes;
318     }
319 
320     /**
321      * Sets the value of the totalVotes property.
322      * 
323      */
324     public void setTotalVotes(long value) {
325         this.totalVotes = value;
326     }
327 
328     /**
329      * Gets the value of the yesVotes property.
330      * 
331      */
332     @Basic
333     @Column(name = "YES_VOTES", precision = 20, scale = 0)
334     public long getYesVotes() {
335         return yesVotes;
336     }
337 
338     /**
339      * Sets the value of the yesVotes property.
340      * 
341      */
342     public void setYesVotes(long value) {
343         this.yesVotes = value;
344     }
345 
346     /**
347      * Gets the value of the noVotes property.
348      * 
349      */
350     @Basic
351     @Column(name = "NO_VOTES", precision = 20, scale = 0)
352     public long getNoVotes() {
353         return noVotes;
354     }
355 
356     /**
357      * Sets the value of the noVotes property.
358      * 
359      */
360     public void setNoVotes(long value) {
361         this.noVotes = value;
362     }
363 
364     /**
365      * Gets the value of the abstainVotes property.
366      * 
367      */
368     @Basic
369     @Column(name = "ABSTAIN_VOTES", precision = 20, scale = 0)
370     public long getAbstainVotes() {
371         return abstainVotes;
372     }
373 
374     /**
375      * Sets the value of the abstainVotes property.
376      * 
377      */
378     public void setAbstainVotes(long value) {
379         this.abstainVotes = value;
380     }
381 
382     /**
383      * Gets the value of the absentVotes property.
384      * 
385      */
386     @Basic
387     @Column(name = "ABSENT_VOTES", precision = 20, scale = 0)
388     public long getAbsentVotes() {
389         return absentVotes;
390     }
391 
392     /**
393      * Sets the value of the absentVotes property.
394      * 
395      */
396     public void setAbsentVotes(long value) {
397         this.absentVotes = value;
398     }
399 
400     /**
401      * Gets the value of the approved property.
402      * 
403      */
404     @Basic
405     @Column(name = "APPROVED")
406     public boolean isApproved() {
407         return approved;
408     }
409 
410     /**
411      * Sets the value of the approved property.
412      * 
413      */
414     public void setApproved(boolean value) {
415         this.approved = value;
416     }
417 
418     /**
419      * Gets the value of the noWinner property.
420      * 
421      */
422     @Basic
423     @Column(name = "NO_WINNER")
424     public boolean isNoWinner() {
425         return noWinner;
426     }
427 
428     /**
429      * Sets the value of the noWinner property.
430      * 
431      */
432     public void setNoWinner(boolean value) {
433         this.noWinner = value;
434     }
435 
436     /**
437      * Gets the value of the percentageYes property.
438      * 
439      * @return
440      *     possible object is
441      *     {@link BigDecimal }
442      *     
443      */
444     @Basic
445     @Column(name = "PERCENTAGE_YES", precision = 20, scale = 10)
446     public BigDecimal getPercentageYes() {
447         return percentageYes;
448     }
449 
450     /**
451      * Sets the value of the percentageYes property.
452      * 
453      * @param value
454      *     allowed object is
455      *     {@link BigDecimal }
456      *     
457      */
458     public void setPercentageYes(BigDecimal value) {
459         this.percentageYes = value;
460     }
461 
462     /**
463      * Gets the value of the percentageNo property.
464      * 
465      * @return
466      *     possible object is
467      *     {@link BigDecimal }
468      *     
469      */
470     @Basic
471     @Column(name = "PERCENTAGE_NO", precision = 20, scale = 10)
472     public BigDecimal getPercentageNo() {
473         return percentageNo;
474     }
475 
476     /**
477      * Sets the value of the percentageNo property.
478      * 
479      * @param value
480      *     allowed object is
481      *     {@link BigDecimal }
482      *     
483      */
484     public void setPercentageNo(BigDecimal value) {
485         this.percentageNo = value;
486     }
487 
488     /**
489      * Gets the value of the percentageAbsent property.
490      * 
491      * @return
492      *     possible object is
493      *     {@link BigDecimal }
494      *     
495      */
496     @Basic
497     @Column(name = "PERCENTAGE_ABSENT", precision = 20, scale = 10)
498     public BigDecimal getPercentageAbsent() {
499         return percentageAbsent;
500     }
501 
502     /**
503      * Sets the value of the percentageAbsent property.
504      * 
505      * @param value
506      *     allowed object is
507      *     {@link BigDecimal }
508      *     
509      */
510     public void setPercentageAbsent(BigDecimal value) {
511         this.percentageAbsent = value;
512     }
513 
514     /**
515      * Gets the value of the percentageAbstain property.
516      * 
517      * @return
518      *     possible object is
519      *     {@link BigDecimal }
520      *     
521      */
522     @Basic
523     @Column(name = "PERCENTAGE_ABSTAIN", precision = 20, scale = 10)
524     public BigDecimal getPercentageAbstain() {
525         return percentageAbstain;
526     }
527 
528     /**
529      * Sets the value of the percentageAbstain property.
530      * 
531      * @param value
532      *     allowed object is
533      *     {@link BigDecimal }
534      *     
535      */
536     public void setPercentageAbstain(BigDecimal value) {
537         this.percentageAbstain = value;
538     }
539 
540     /**
541      * Gets the value of the percentageMale property.
542      * 
543      * @return
544      *     possible object is
545      *     {@link BigDecimal }
546      *     
547      */
548     @Basic
549     @Column(name = "PERCENTAGE_MALE", precision = 20, scale = 10)
550     public BigDecimal getPercentageMale() {
551         return percentageMale;
552     }
553 
554     /**
555      * Sets the value of the percentageMale property.
556      * 
557      * @param value
558      *     allowed object is
559      *     {@link BigDecimal }
560      *     
561      */
562     public void setPercentageMale(BigDecimal value) {
563         this.percentageMale = value;
564     }
565 
566     public ViewRiksdagenVoteDataBallotSummary withEmbeddedId(RiksdagenVoteDataBallotEmbeddedId value) {
567         setEmbeddedId(value);
568         return this;
569     }
570 
571     public ViewRiksdagenVoteDataBallotSummary withVoteDate(Date value) {
572         setVoteDate(value);
573         return this;
574     }
575 
576     public ViewRiksdagenVoteDataBallotSummary withRm(String value) {
577         setRm(value);
578         return this;
579     }
580 
581     public ViewRiksdagenVoteDataBallotSummary withBallotType(String value) {
582         setBallotType(value);
583         return this;
584     }
585 
586     public ViewRiksdagenVoteDataBallotSummary withLabel(String value) {
587         setLabel(value);
588         return this;
589     }
590 
591     public ViewRiksdagenVoteDataBallotSummary withAvgBornYear(BigDecimal value) {
592         setAvgBornYear(value);
593         return this;
594     }
595 
596     public ViewRiksdagenVoteDataBallotSummary withTotalVotes(long value) {
597         setTotalVotes(value);
598         return this;
599     }
600 
601     public ViewRiksdagenVoteDataBallotSummary withYesVotes(long value) {
602         setYesVotes(value);
603         return this;
604     }
605 
606     public ViewRiksdagenVoteDataBallotSummary withNoVotes(long value) {
607         setNoVotes(value);
608         return this;
609     }
610 
611     public ViewRiksdagenVoteDataBallotSummary withAbstainVotes(long value) {
612         setAbstainVotes(value);
613         return this;
614     }
615 
616     public ViewRiksdagenVoteDataBallotSummary withAbsentVotes(long value) {
617         setAbsentVotes(value);
618         return this;
619     }
620 
621     public ViewRiksdagenVoteDataBallotSummary withApproved(boolean value) {
622         setApproved(value);
623         return this;
624     }
625 
626     public ViewRiksdagenVoteDataBallotSummary withNoWinner(boolean value) {
627         setNoWinner(value);
628         return this;
629     }
630 
631     public ViewRiksdagenVoteDataBallotSummary withPercentageYes(BigDecimal value) {
632         setPercentageYes(value);
633         return this;
634     }
635 
636     public ViewRiksdagenVoteDataBallotSummary withPercentageNo(BigDecimal value) {
637         setPercentageNo(value);
638         return this;
639     }
640 
641     public ViewRiksdagenVoteDataBallotSummary withPercentageAbsent(BigDecimal value) {
642         setPercentageAbsent(value);
643         return this;
644     }
645 
646     public ViewRiksdagenVoteDataBallotSummary withPercentageAbstain(BigDecimal value) {
647         setPercentageAbstain(value);
648         return this;
649     }
650 
651     public ViewRiksdagenVoteDataBallotSummary withPercentageMale(BigDecimal value) {
652         setPercentageMale(value);
653         return this;
654     }
655 
656     public String toString() {
657         final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
658         final StringBuilder buffer = new StringBuilder();
659         append(null, buffer, strategy);
660         return buffer.toString();
661     }
662 
663     public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
664         strategy.appendStart(locator, this, buffer);
665         appendFields(locator, buffer, strategy);
666         strategy.appendEnd(locator, this, buffer);
667         return buffer;
668     }
669 
670     public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
671         {
672             RiksdagenVoteDataBallotEmbeddedId theEmbeddedId;
673             theEmbeddedId = this.getEmbeddedId();
674             strategy.appendField(locator, this, "embeddedId", buffer, theEmbeddedId);
675         }
676         {
677             Date theVoteDate;
678             theVoteDate = this.getVoteDate();
679             strategy.appendField(locator, this, "voteDate", buffer, theVoteDate);
680         }
681         {
682             String theRm;
683             theRm = this.getRm();
684             strategy.appendField(locator, this, "rm", buffer, theRm);
685         }
686         {
687             String theBallotType;
688             theBallotType = this.getBallotType();
689             strategy.appendField(locator, this, "ballotType", buffer, theBallotType);
690         }
691         {
692             String theLabel;
693             theLabel = this.getLabel();
694             strategy.appendField(locator, this, "label", buffer, theLabel);
695         }
696         {
697             BigDecimal theAvgBornYear;
698             theAvgBornYear = this.getAvgBornYear();
699             strategy.appendField(locator, this, "avgBornYear", buffer, theAvgBornYear);
700         }
701         {
702             long theTotalVotes;
703             theTotalVotes = this.getTotalVotes();
704             strategy.appendField(locator, this, "totalVotes", buffer, theTotalVotes);
705         }
706         {
707             long theYesVotes;
708             theYesVotes = this.getYesVotes();
709             strategy.appendField(locator, this, "yesVotes", buffer, theYesVotes);
710         }
711         {
712             long theNoVotes;
713             theNoVotes = this.getNoVotes();
714             strategy.appendField(locator, this, "noVotes", buffer, theNoVotes);
715         }
716         {
717             long theAbstainVotes;
718             theAbstainVotes = this.getAbstainVotes();
719             strategy.appendField(locator, this, "abstainVotes", buffer, theAbstainVotes);
720         }
721         {
722             long theAbsentVotes;
723             theAbsentVotes = this.getAbsentVotes();
724             strategy.appendField(locator, this, "absentVotes", buffer, theAbsentVotes);
725         }
726         {
727             boolean theApproved;
728             theApproved = this.isApproved();
729             strategy.appendField(locator, this, "approved", buffer, theApproved);
730         }
731         {
732             boolean theNoWinner;
733             theNoWinner = this.isNoWinner();
734             strategy.appendField(locator, this, "noWinner", buffer, theNoWinner);
735         }
736         {
737             BigDecimal thePercentageYes;
738             thePercentageYes = this.getPercentageYes();
739             strategy.appendField(locator, this, "percentageYes", buffer, thePercentageYes);
740         }
741         {
742             BigDecimal thePercentageNo;
743             thePercentageNo = this.getPercentageNo();
744             strategy.appendField(locator, this, "percentageNo", buffer, thePercentageNo);
745         }
746         {
747             BigDecimal thePercentageAbsent;
748             thePercentageAbsent = this.getPercentageAbsent();
749             strategy.appendField(locator, this, "percentageAbsent", buffer, thePercentageAbsent);
750         }
751         {
752             BigDecimal thePercentageAbstain;
753             thePercentageAbstain = this.getPercentageAbstain();
754             strategy.appendField(locator, this, "percentageAbstain", buffer, thePercentageAbstain);
755         }
756         {
757             BigDecimal thePercentageMale;
758             thePercentageMale = this.getPercentageMale();
759             strategy.appendField(locator, this, "percentageMale", buffer, thePercentageMale);
760         }
761         return buffer;
762     }
763 
764     public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
765         if ((object == null)||(this.getClass()!= object.getClass())) {
766             return false;
767         }
768         if (this == object) {
769             return true;
770         }
771         final ViewRiksdagenVoteDataBallotSummary that = ((ViewRiksdagenVoteDataBallotSummary) object);
772         {
773             RiksdagenVoteDataBallotEmbeddedId lhsEmbeddedId;
774             lhsEmbeddedId = this.getEmbeddedId();
775             RiksdagenVoteDataBallotEmbeddedId rhsEmbeddedId;
776             rhsEmbeddedId = that.getEmbeddedId();
777             if (!strategy.equals(LocatorUtils.property(thisLocator, "embeddedId", lhsEmbeddedId), LocatorUtils.property(thatLocator, "embeddedId", rhsEmbeddedId), lhsEmbeddedId, rhsEmbeddedId)) {
778                 return false;
779             }
780         }
781         {
782             Date lhsVoteDate;
783             lhsVoteDate = this.getVoteDate();
784             Date rhsVoteDate;
785             rhsVoteDate = that.getVoteDate();
786             if (!strategy.equals(LocatorUtils.property(thisLocator, "voteDate", lhsVoteDate), LocatorUtils.property(thatLocator, "voteDate", rhsVoteDate), lhsVoteDate, rhsVoteDate)) {
787                 return false;
788             }
789         }
790         {
791             String lhsRm;
792             lhsRm = this.getRm();
793             String rhsRm;
794             rhsRm = that.getRm();
795             if (!strategy.equals(LocatorUtils.property(thisLocator, "rm", lhsRm), LocatorUtils.property(thatLocator, "rm", rhsRm), lhsRm, rhsRm)) {
796                 return false;
797             }
798         }
799         {
800             String lhsBallotType;
801             lhsBallotType = this.getBallotType();
802             String rhsBallotType;
803             rhsBallotType = that.getBallotType();
804             if (!strategy.equals(LocatorUtils.property(thisLocator, "ballotType", lhsBallotType), LocatorUtils.property(thatLocator, "ballotType", rhsBallotType), lhsBallotType, rhsBallotType)) {
805                 return false;
806             }
807         }
808         {
809             String lhsLabel;
810             lhsLabel = this.getLabel();
811             String rhsLabel;
812             rhsLabel = that.getLabel();
813             if (!strategy.equals(LocatorUtils.property(thisLocator, "label", lhsLabel), LocatorUtils.property(thatLocator, "label", rhsLabel), lhsLabel, rhsLabel)) {
814                 return false;
815             }
816         }
817         {
818             BigDecimal lhsAvgBornYear;
819             lhsAvgBornYear = this.getAvgBornYear();
820             BigDecimal rhsAvgBornYear;
821             rhsAvgBornYear = that.getAvgBornYear();
822             if (!strategy.equals(LocatorUtils.property(thisLocator, "avgBornYear", lhsAvgBornYear), LocatorUtils.property(thatLocator, "avgBornYear", rhsAvgBornYear), lhsAvgBornYear, rhsAvgBornYear)) {
823                 return false;
824             }
825         }
826         {
827             long lhsTotalVotes;
828             lhsTotalVotes = this.getTotalVotes();
829             long rhsTotalVotes;
830             rhsTotalVotes = that.getTotalVotes();
831             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalVotes", lhsTotalVotes), LocatorUtils.property(thatLocator, "totalVotes", rhsTotalVotes), lhsTotalVotes, rhsTotalVotes)) {
832                 return false;
833             }
834         }
835         {
836             long lhsYesVotes;
837             lhsYesVotes = this.getYesVotes();
838             long rhsYesVotes;
839             rhsYesVotes = that.getYesVotes();
840             if (!strategy.equals(LocatorUtils.property(thisLocator, "yesVotes", lhsYesVotes), LocatorUtils.property(thatLocator, "yesVotes", rhsYesVotes), lhsYesVotes, rhsYesVotes)) {
841                 return false;
842             }
843         }
844         {
845             long lhsNoVotes;
846             lhsNoVotes = this.getNoVotes();
847             long rhsNoVotes;
848             rhsNoVotes = that.getNoVotes();
849             if (!strategy.equals(LocatorUtils.property(thisLocator, "noVotes", lhsNoVotes), LocatorUtils.property(thatLocator, "noVotes", rhsNoVotes), lhsNoVotes, rhsNoVotes)) {
850                 return false;
851             }
852         }
853         {
854             long lhsAbstainVotes;
855             lhsAbstainVotes = this.getAbstainVotes();
856             long rhsAbstainVotes;
857             rhsAbstainVotes = that.getAbstainVotes();
858             if (!strategy.equals(LocatorUtils.property(thisLocator, "abstainVotes", lhsAbstainVotes), LocatorUtils.property(thatLocator, "abstainVotes", rhsAbstainVotes), lhsAbstainVotes, rhsAbstainVotes)) {
859                 return false;
860             }
861         }
862         {
863             long lhsAbsentVotes;
864             lhsAbsentVotes = this.getAbsentVotes();
865             long rhsAbsentVotes;
866             rhsAbsentVotes = that.getAbsentVotes();
867             if (!strategy.equals(LocatorUtils.property(thisLocator, "absentVotes", lhsAbsentVotes), LocatorUtils.property(thatLocator, "absentVotes", rhsAbsentVotes), lhsAbsentVotes, rhsAbsentVotes)) {
868                 return false;
869             }
870         }
871         {
872             boolean lhsApproved;
873             lhsApproved = this.isApproved();
874             boolean rhsApproved;
875             rhsApproved = that.isApproved();
876             if (!strategy.equals(LocatorUtils.property(thisLocator, "approved", lhsApproved), LocatorUtils.property(thatLocator, "approved", rhsApproved), lhsApproved, rhsApproved)) {
877                 return false;
878             }
879         }
880         {
881             boolean lhsNoWinner;
882             lhsNoWinner = this.isNoWinner();
883             boolean rhsNoWinner;
884             rhsNoWinner = that.isNoWinner();
885             if (!strategy.equals(LocatorUtils.property(thisLocator, "noWinner", lhsNoWinner), LocatorUtils.property(thatLocator, "noWinner", rhsNoWinner), lhsNoWinner, rhsNoWinner)) {
886                 return false;
887             }
888         }
889         {
890             BigDecimal lhsPercentageYes;
891             lhsPercentageYes = this.getPercentageYes();
892             BigDecimal rhsPercentageYes;
893             rhsPercentageYes = that.getPercentageYes();
894             if (!strategy.equals(LocatorUtils.property(thisLocator, "percentageYes", lhsPercentageYes), LocatorUtils.property(thatLocator, "percentageYes", rhsPercentageYes), lhsPercentageYes, rhsPercentageYes)) {
895                 return false;
896             }
897         }
898         {
899             BigDecimal lhsPercentageNo;
900             lhsPercentageNo = this.getPercentageNo();
901             BigDecimal rhsPercentageNo;
902             rhsPercentageNo = that.getPercentageNo();
903             if (!strategy.equals(LocatorUtils.property(thisLocator, "percentageNo", lhsPercentageNo), LocatorUtils.property(thatLocator, "percentageNo", rhsPercentageNo), lhsPercentageNo, rhsPercentageNo)) {
904                 return false;
905             }
906         }
907         {
908             BigDecimal lhsPercentageAbsent;
909             lhsPercentageAbsent = this.getPercentageAbsent();
910             BigDecimal rhsPercentageAbsent;
911             rhsPercentageAbsent = that.getPercentageAbsent();
912             if (!strategy.equals(LocatorUtils.property(thisLocator, "percentageAbsent", lhsPercentageAbsent), LocatorUtils.property(thatLocator, "percentageAbsent", rhsPercentageAbsent), lhsPercentageAbsent, rhsPercentageAbsent)) {
913                 return false;
914             }
915         }
916         {
917             BigDecimal lhsPercentageAbstain;
918             lhsPercentageAbstain = this.getPercentageAbstain();
919             BigDecimal rhsPercentageAbstain;
920             rhsPercentageAbstain = that.getPercentageAbstain();
921             if (!strategy.equals(LocatorUtils.property(thisLocator, "percentageAbstain", lhsPercentageAbstain), LocatorUtils.property(thatLocator, "percentageAbstain", rhsPercentageAbstain), lhsPercentageAbstain, rhsPercentageAbstain)) {
922                 return false;
923             }
924         }
925         {
926             BigDecimal lhsPercentageMale;
927             lhsPercentageMale = this.getPercentageMale();
928             BigDecimal rhsPercentageMale;
929             rhsPercentageMale = that.getPercentageMale();
930             if (!strategy.equals(LocatorUtils.property(thisLocator, "percentageMale", lhsPercentageMale), LocatorUtils.property(thatLocator, "percentageMale", rhsPercentageMale), lhsPercentageMale, rhsPercentageMale)) {
931                 return false;
932             }
933         }
934         return true;
935     }
936 
937     public boolean equals(Object object) {
938         final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
939         return equals(null, null, object, strategy);
940     }
941 
942     public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
943         int currentHashCode = 1;
944         {
945             RiksdagenVoteDataBallotEmbeddedId theEmbeddedId;
946             theEmbeddedId = this.getEmbeddedId();
947             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "embeddedId", theEmbeddedId), currentHashCode, theEmbeddedId);
948         }
949         {
950             Date theVoteDate;
951             theVoteDate = this.getVoteDate();
952             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "voteDate", theVoteDate), currentHashCode, theVoteDate);
953         }
954         {
955             String theRm;
956             theRm = this.getRm();
957             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "rm", theRm), currentHashCode, theRm);
958         }
959         {
960             String theBallotType;
961             theBallotType = this.getBallotType();
962             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "ballotType", theBallotType), currentHashCode, theBallotType);
963         }
964         {
965             String theLabel;
966             theLabel = this.getLabel();
967             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "label", theLabel), currentHashCode, theLabel);
968         }
969         {
970             BigDecimal theAvgBornYear;
971             theAvgBornYear = this.getAvgBornYear();
972             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "avgBornYear", theAvgBornYear), currentHashCode, theAvgBornYear);
973         }
974         {
975             long theTotalVotes;
976             theTotalVotes = this.getTotalVotes();
977             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalVotes", theTotalVotes), currentHashCode, theTotalVotes);
978         }
979         {
980             long theYesVotes;
981             theYesVotes = this.getYesVotes();
982             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "yesVotes", theYesVotes), currentHashCode, theYesVotes);
983         }
984         {
985             long theNoVotes;
986             theNoVotes = this.getNoVotes();
987             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "noVotes", theNoVotes), currentHashCode, theNoVotes);
988         }
989         {
990             long theAbstainVotes;
991             theAbstainVotes = this.getAbstainVotes();
992             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "abstainVotes", theAbstainVotes), currentHashCode, theAbstainVotes);
993         }
994         {
995             long theAbsentVotes;
996             theAbsentVotes = this.getAbsentVotes();
997             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "absentVotes", theAbsentVotes), currentHashCode, theAbsentVotes);
998         }
999         {
1000             boolean theApproved;
1001             theApproved = this.isApproved();
1002             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "approved", theApproved), currentHashCode, theApproved);
1003         }
1004         {
1005             boolean theNoWinner;
1006             theNoWinner = this.isNoWinner();
1007             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "noWinner", theNoWinner), currentHashCode, theNoWinner);
1008         }
1009         {
1010             BigDecimal thePercentageYes;
1011             thePercentageYes = this.getPercentageYes();
1012             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "percentageYes", thePercentageYes), currentHashCode, thePercentageYes);
1013         }
1014         {
1015             BigDecimal thePercentageNo;
1016             thePercentageNo = this.getPercentageNo();
1017             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "percentageNo", thePercentageNo), currentHashCode, thePercentageNo);
1018         }
1019         {
1020             BigDecimal thePercentageAbsent;
1021             thePercentageAbsent = this.getPercentageAbsent();
1022             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "percentageAbsent", thePercentageAbsent), currentHashCode, thePercentageAbsent);
1023         }
1024         {
1025             BigDecimal thePercentageAbstain;
1026             thePercentageAbstain = this.getPercentageAbstain();
1027             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "percentageAbstain", thePercentageAbstain), currentHashCode, thePercentageAbstain);
1028         }
1029         {
1030             BigDecimal thePercentageMale;
1031             thePercentageMale = this.getPercentageMale();
1032             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "percentageMale", thePercentageMale), currentHashCode, thePercentageMale);
1033         }
1034         return currentHashCode;
1035     }
1036 
1037     public int hashCode() {
1038         final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
1039         return this.hashCode(null, strategy);
1040     }
1041 
1042 }