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.politician.impl;
10  
11  import java.io.Serializable;
12  import java.util.Date;
13  import javax.persistence.Basic;
14  import javax.persistence.Column;
15  import javax.persistence.Entity;
16  import javax.persistence.Id;
17  import javax.persistence.Inheritance;
18  import javax.persistence.InheritanceType;
19  import javax.persistence.Table;
20  import javax.persistence.Temporal;
21  import javax.persistence.TemporalType;
22  import javax.xml.bind.annotation.XmlAccessType;
23  import javax.xml.bind.annotation.XmlAccessorType;
24  import javax.xml.bind.annotation.XmlElement;
25  import javax.xml.bind.annotation.XmlSchemaType;
26  import javax.xml.bind.annotation.XmlType;
27  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
28  import com.hack23.cia.model.common.api.ModelObject;
29  import org.jvnet.jaxb2_commons.lang.Equals;
30  import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
31  import org.jvnet.jaxb2_commons.lang.HashCode;
32  import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
33  import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
34  import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
35  import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
36  import org.jvnet.jaxb2_commons.lang.ToString;
37  import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
38  import org.jvnet.jaxb2_commons.locator.ObjectLocator;
39  import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
40  import org.w3._2001.xmlschema.Adapter3;
41  
42  
43  /**
44   * <p>Java class for ViewRiksdagenPolitician complex type.
45   * 
46   * <p>The following schema fragment specifies the expected content contained within this class.
47   * 
48   * <pre>
49   * &lt;complexType name="ViewRiksdagenPolitician"&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="personId" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
54   *         &lt;element name="firstName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
55   *         &lt;element name="lastName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
56   *         &lt;element name="party" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
57   *         &lt;element name="gender" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
58   *         &lt;element name="bornYear" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
59   *         &lt;element name="totalAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
60   *         &lt;element name="currentAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
61   *         &lt;element name="firstAssignmentDate" type="{http://www.w3.org/2001/XMLSchema}date"/&gt;
62   *         &lt;element name="lastAssignmentDate" type="{http://www.w3.org/2001/XMLSchema}date"/&gt;
63   *         &lt;element name="totalDaysServed" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
64   *         &lt;element name="totalDaysServedParliament" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
65   *         &lt;element name="totalDaysServedCommittee" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
66   *         &lt;element name="totalDaysServedGovernment" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
67   *         &lt;element name="totalDaysServedEu" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
68   *         &lt;element name="active" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
69   *         &lt;element name="activeEu" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
70   *         &lt;element name="activeGovernment" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
71   *         &lt;element name="activeCommittee" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
72   *         &lt;element name="activeParliament" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
73   *         &lt;element name="activeParty" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
74   *         &lt;element name="activeSpeaker" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
75   *         &lt;element name="totalDaysServedSpeaker" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
76   *         &lt;element name="totalDaysServedParty" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
77   *         &lt;element name="totalPartyAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
78   *         &lt;element name="totalMinistryAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
79   *         &lt;element name="totalCommitteeAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
80   *         &lt;element name="totalSpeakerAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
81   *         &lt;element name="currentPartyAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
82   *         &lt;element name="currentMinistryAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
83   *         &lt;element name="currentCommitteeAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
84   *         &lt;element name="currentSpeakerAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
85   *       &lt;/sequence&gt;
86   *     &lt;/restriction&gt;
87   *   &lt;/complexContent&gt;
88   * &lt;/complexType&gt;
89   * </pre>
90   * 
91   * 
92   */
93  @XmlAccessorType(XmlAccessType.FIELD)
94  @XmlType(name = "ViewRiksdagenPolitician", propOrder = {
95      "personId",
96      "firstName",
97      "lastName",
98      "party",
99      "gender",
100     "bornYear",
101     "totalAssignments",
102     "currentAssignments",
103     "firstAssignmentDate",
104     "lastAssignmentDate",
105     "totalDaysServed",
106     "totalDaysServedParliament",
107     "totalDaysServedCommittee",
108     "totalDaysServedGovernment",
109     "totalDaysServedEu",
110     "active",
111     "activeEu",
112     "activeGovernment",
113     "activeCommittee",
114     "activeParliament",
115     "activeParty",
116     "activeSpeaker",
117     "totalDaysServedSpeaker",
118     "totalDaysServedParty",
119     "totalPartyAssignments",
120     "totalMinistryAssignments",
121     "totalCommitteeAssignments",
122     "totalSpeakerAssignments",
123     "currentPartyAssignments",
124     "currentMinistryAssignments",
125     "currentCommitteeAssignments",
126     "currentSpeakerAssignments"
127 })
128 @Entity(name = "ViewRiksdagenPolitician")
129 @Table(name = "VIEW_RIKSDAGEN_POLITICIAN")
130 @Inheritance(strategy = InheritanceType.JOINED)
131 public class ViewRiksdagenPolitician
132     implements Serializable, ModelObject, Equals, HashCode, ToString
133 {
134 
135     private final static long serialVersionUID = 1L;
136     @XmlElement(required = true)
137     protected String personId;
138     @XmlElement(required = true)
139     protected String firstName;
140     @XmlElement(required = true)
141     protected String lastName;
142     @XmlElement(required = true)
143     protected String party;
144     @XmlElement(required = true)
145     protected String gender;
146     protected int bornYear;
147     protected long totalAssignments;
148     protected long currentAssignments;
149     @XmlElement(required = true, type = String.class)
150     @XmlJavaTypeAdapter(Adapter3 .class)
151     @XmlSchemaType(name = "date")
152     protected Date firstAssignmentDate;
153     @XmlElement(required = true, type = String.class)
154     @XmlJavaTypeAdapter(Adapter3 .class)
155     @XmlSchemaType(name = "date")
156     protected Date lastAssignmentDate;
157     protected long totalDaysServed;
158     protected long totalDaysServedParliament;
159     protected long totalDaysServedCommittee;
160     protected long totalDaysServedGovernment;
161     protected long totalDaysServedEu;
162     protected boolean active;
163     protected boolean activeEu;
164     protected boolean activeGovernment;
165     protected boolean activeCommittee;
166     protected boolean activeParliament;
167     protected boolean activeParty;
168     protected boolean activeSpeaker;
169     protected long totalDaysServedSpeaker;
170     protected long totalDaysServedParty;
171     protected long totalPartyAssignments;
172     protected long totalMinistryAssignments;
173     protected long totalCommitteeAssignments;
174     protected long totalSpeakerAssignments;
175     protected long currentPartyAssignments;
176     protected long currentMinistryAssignments;
177     protected long currentCommitteeAssignments;
178     protected long currentSpeakerAssignments;
179 
180     /**
181      * Gets the value of the personId property.
182      * 
183      * @return
184      *     possible object is
185      *     {@link String }
186      *     
187      */
188     @Id
189     @Column(name = "PERSON_ID")
190     public String getPersonId() {
191         return personId;
192     }
193 
194     /**
195      * Sets the value of the personId property.
196      * 
197      * @param value
198      *     allowed object is
199      *     {@link String }
200      *     
201      */
202     public void setPersonId(String value) {
203         this.personId = value;
204     }
205 
206     /**
207      * Gets the value of the firstName property.
208      * 
209      * @return
210      *     possible object is
211      *     {@link String }
212      *     
213      */
214     @Basic
215     @Column(name = "FIRST_NAME", length = 255)
216     public String getFirstName() {
217         return firstName;
218     }
219 
220     /**
221      * Sets the value of the firstName property.
222      * 
223      * @param value
224      *     allowed object is
225      *     {@link String }
226      *     
227      */
228     public void setFirstName(String value) {
229         this.firstName = value;
230     }
231 
232     /**
233      * Gets the value of the lastName property.
234      * 
235      * @return
236      *     possible object is
237      *     {@link String }
238      *     
239      */
240     @Basic
241     @Column(name = "LAST_NAME", length = 255)
242     public String getLastName() {
243         return lastName;
244     }
245 
246     /**
247      * Sets the value of the lastName property.
248      * 
249      * @param value
250      *     allowed object is
251      *     {@link String }
252      *     
253      */
254     public void setLastName(String value) {
255         this.lastName = value;
256     }
257 
258     /**
259      * Gets the value of the party property.
260      * 
261      * @return
262      *     possible object is
263      *     {@link String }
264      *     
265      */
266     @Basic
267     @Column(name = "PARTY", length = 255)
268     public String getParty() {
269         return party;
270     }
271 
272     /**
273      * Sets the value of the party property.
274      * 
275      * @param value
276      *     allowed object is
277      *     {@link String }
278      *     
279      */
280     public void setParty(String value) {
281         this.party = value;
282     }
283 
284     /**
285      * Gets the value of the gender property.
286      * 
287      * @return
288      *     possible object is
289      *     {@link String }
290      *     
291      */
292     @Basic
293     @Column(name = "GENDER", length = 255)
294     public String getGender() {
295         return gender;
296     }
297 
298     /**
299      * Sets the value of the gender property.
300      * 
301      * @param value
302      *     allowed object is
303      *     {@link String }
304      *     
305      */
306     public void setGender(String value) {
307         this.gender = value;
308     }
309 
310     /**
311      * Gets the value of the bornYear property.
312      * 
313      */
314     @Basic
315     @Column(name = "BORN_YEAR", precision = 10, scale = 0)
316     public int getBornYear() {
317         return bornYear;
318     }
319 
320     /**
321      * Sets the value of the bornYear property.
322      * 
323      */
324     public void setBornYear(int value) {
325         this.bornYear = value;
326     }
327 
328     /**
329      * Gets the value of the totalAssignments property.
330      * 
331      */
332     @Basic
333     @Column(name = "TOTAL_ASSIGNMENTS", precision = 20, scale = 0)
334     public long getTotalAssignments() {
335         return totalAssignments;
336     }
337 
338     /**
339      * Sets the value of the totalAssignments property.
340      * 
341      */
342     public void setTotalAssignments(long value) {
343         this.totalAssignments = value;
344     }
345 
346     /**
347      * Gets the value of the currentAssignments property.
348      * 
349      */
350     @Basic
351     @Column(name = "CURRENT_ASSIGNMENTS", precision = 20, scale = 0)
352     public long getCurrentAssignments() {
353         return currentAssignments;
354     }
355 
356     /**
357      * Sets the value of the currentAssignments property.
358      * 
359      */
360     public void setCurrentAssignments(long value) {
361         this.currentAssignments = value;
362     }
363 
364     /**
365      * Gets the value of the firstAssignmentDate property.
366      * 
367      * @return
368      *     possible object is
369      *     {@link String }
370      *     
371      */
372     @Basic
373     @Column(name = "FIRST_ASSIGNMENT_DATE")
374     @Temporal(TemporalType.DATE)
375     public Date getFirstAssignmentDate() {
376         return firstAssignmentDate;
377     }
378 
379     /**
380      * Sets the value of the firstAssignmentDate property.
381      * 
382      * @param value
383      *     allowed object is
384      *     {@link String }
385      *     
386      */
387     public void setFirstAssignmentDate(Date value) {
388         this.firstAssignmentDate = value;
389     }
390 
391     /**
392      * Gets the value of the lastAssignmentDate property.
393      * 
394      * @return
395      *     possible object is
396      *     {@link String }
397      *     
398      */
399     @Basic
400     @Column(name = "LAST_ASSIGNMENT_DATE")
401     @Temporal(TemporalType.DATE)
402     public Date getLastAssignmentDate() {
403         return lastAssignmentDate;
404     }
405 
406     /**
407      * Sets the value of the lastAssignmentDate property.
408      * 
409      * @param value
410      *     allowed object is
411      *     {@link String }
412      *     
413      */
414     public void setLastAssignmentDate(Date value) {
415         this.lastAssignmentDate = value;
416     }
417 
418     /**
419      * Gets the value of the totalDaysServed property.
420      * 
421      */
422     @Basic
423     @Column(name = "TOTAL_DAYS_SERVED", precision = 20, scale = 0)
424     public long getTotalDaysServed() {
425         return totalDaysServed;
426     }
427 
428     /**
429      * Sets the value of the totalDaysServed property.
430      * 
431      */
432     public void setTotalDaysServed(long value) {
433         this.totalDaysServed = value;
434     }
435 
436     /**
437      * Gets the value of the totalDaysServedParliament property.
438      * 
439      */
440     @Basic
441     @Column(name = "TOTAL_DAYS_SERVED_PARLIAMENT", precision = 20, scale = 0)
442     public long getTotalDaysServedParliament() {
443         return totalDaysServedParliament;
444     }
445 
446     /**
447      * Sets the value of the totalDaysServedParliament property.
448      * 
449      */
450     public void setTotalDaysServedParliament(long value) {
451         this.totalDaysServedParliament = value;
452     }
453 
454     /**
455      * Gets the value of the totalDaysServedCommittee property.
456      * 
457      */
458     @Basic
459     @Column(name = "TOTAL_DAYS_SERVED_COMMITTEE", precision = 20, scale = 0)
460     public long getTotalDaysServedCommittee() {
461         return totalDaysServedCommittee;
462     }
463 
464     /**
465      * Sets the value of the totalDaysServedCommittee property.
466      * 
467      */
468     public void setTotalDaysServedCommittee(long value) {
469         this.totalDaysServedCommittee = value;
470     }
471 
472     /**
473      * Gets the value of the totalDaysServedGovernment property.
474      * 
475      */
476     @Basic
477     @Column(name = "TOTAL_DAYS_SERVED_GOVERNMENT", precision = 20, scale = 0)
478     public long getTotalDaysServedGovernment() {
479         return totalDaysServedGovernment;
480     }
481 
482     /**
483      * Sets the value of the totalDaysServedGovernment property.
484      * 
485      */
486     public void setTotalDaysServedGovernment(long value) {
487         this.totalDaysServedGovernment = value;
488     }
489 
490     /**
491      * Gets the value of the totalDaysServedEu property.
492      * 
493      */
494     @Basic
495     @Column(name = "TOTAL_DAYS_SERVED_EU", precision = 20, scale = 0)
496     public long getTotalDaysServedEu() {
497         return totalDaysServedEu;
498     }
499 
500     /**
501      * Sets the value of the totalDaysServedEu property.
502      * 
503      */
504     public void setTotalDaysServedEu(long value) {
505         this.totalDaysServedEu = value;
506     }
507 
508     /**
509      * Gets the value of the active property.
510      * 
511      */
512     @Basic
513     @Column(name = "ACTIVE")
514     public boolean isActive() {
515         return active;
516     }
517 
518     /**
519      * Sets the value of the active property.
520      * 
521      */
522     public void setActive(boolean value) {
523         this.active = value;
524     }
525 
526     /**
527      * Gets the value of the activeEu property.
528      * 
529      */
530     @Basic
531     @Column(name = "ACTIVE_EU")
532     public boolean isActiveEu() {
533         return activeEu;
534     }
535 
536     /**
537      * Sets the value of the activeEu property.
538      * 
539      */
540     public void setActiveEu(boolean value) {
541         this.activeEu = value;
542     }
543 
544     /**
545      * Gets the value of the activeGovernment property.
546      * 
547      */
548     @Basic
549     @Column(name = "ACTIVE_GOVERNMENT")
550     public boolean isActiveGovernment() {
551         return activeGovernment;
552     }
553 
554     /**
555      * Sets the value of the activeGovernment property.
556      * 
557      */
558     public void setActiveGovernment(boolean value) {
559         this.activeGovernment = value;
560     }
561 
562     /**
563      * Gets the value of the activeCommittee property.
564      * 
565      */
566     @Basic
567     @Column(name = "ACTIVE_COMMITTEE")
568     public boolean isActiveCommittee() {
569         return activeCommittee;
570     }
571 
572     /**
573      * Sets the value of the activeCommittee property.
574      * 
575      */
576     public void setActiveCommittee(boolean value) {
577         this.activeCommittee = value;
578     }
579 
580     /**
581      * Gets the value of the activeParliament property.
582      * 
583      */
584     @Basic
585     @Column(name = "ACTIVE_PARLIAMENT")
586     public boolean isActiveParliament() {
587         return activeParliament;
588     }
589 
590     /**
591      * Sets the value of the activeParliament property.
592      * 
593      */
594     public void setActiveParliament(boolean value) {
595         this.activeParliament = value;
596     }
597 
598     /**
599      * Gets the value of the activeParty property.
600      * 
601      */
602     @Basic
603     @Column(name = "ACTIVE_PARTY")
604     public boolean isActiveParty() {
605         return activeParty;
606     }
607 
608     /**
609      * Sets the value of the activeParty property.
610      * 
611      */
612     public void setActiveParty(boolean value) {
613         this.activeParty = value;
614     }
615 
616     /**
617      * Gets the value of the activeSpeaker property.
618      * 
619      */
620     @Basic
621     @Column(name = "ACTIVE_SPEAKER")
622     public boolean isActiveSpeaker() {
623         return activeSpeaker;
624     }
625 
626     /**
627      * Sets the value of the activeSpeaker property.
628      * 
629      */
630     public void setActiveSpeaker(boolean value) {
631         this.activeSpeaker = value;
632     }
633 
634     /**
635      * Gets the value of the totalDaysServedSpeaker property.
636      * 
637      */
638     @Basic
639     @Column(name = "TOTAL_DAYS_SERVED_SPEAKER", precision = 20, scale = 0)
640     public long getTotalDaysServedSpeaker() {
641         return totalDaysServedSpeaker;
642     }
643 
644     /**
645      * Sets the value of the totalDaysServedSpeaker property.
646      * 
647      */
648     public void setTotalDaysServedSpeaker(long value) {
649         this.totalDaysServedSpeaker = value;
650     }
651 
652     /**
653      * Gets the value of the totalDaysServedParty property.
654      * 
655      */
656     @Basic
657     @Column(name = "TOTAL_DAYS_SERVED_PARTY", precision = 20, scale = 0)
658     public long getTotalDaysServedParty() {
659         return totalDaysServedParty;
660     }
661 
662     /**
663      * Sets the value of the totalDaysServedParty property.
664      * 
665      */
666     public void setTotalDaysServedParty(long value) {
667         this.totalDaysServedParty = value;
668     }
669 
670     /**
671      * Gets the value of the totalPartyAssignments property.
672      * 
673      */
674     @Basic
675     @Column(name = "TOTAL_PARTY_ASSIGNMENTS", precision = 20, scale = 0)
676     public long getTotalPartyAssignments() {
677         return totalPartyAssignments;
678     }
679 
680     /**
681      * Sets the value of the totalPartyAssignments property.
682      * 
683      */
684     public void setTotalPartyAssignments(long value) {
685         this.totalPartyAssignments = value;
686     }
687 
688     /**
689      * Gets the value of the totalMinistryAssignments property.
690      * 
691      */
692     @Basic
693     @Column(name = "TOTAL_MINISTRY_ASSIGNMENTS", precision = 20, scale = 0)
694     public long getTotalMinistryAssignments() {
695         return totalMinistryAssignments;
696     }
697 
698     /**
699      * Sets the value of the totalMinistryAssignments property.
700      * 
701      */
702     public void setTotalMinistryAssignments(long value) {
703         this.totalMinistryAssignments = value;
704     }
705 
706     /**
707      * Gets the value of the totalCommitteeAssignments property.
708      * 
709      */
710     @Basic
711     @Column(name = "TOTAL_COMMITTEE_ASSIGNMENTS", precision = 20, scale = 0)
712     public long getTotalCommitteeAssignments() {
713         return totalCommitteeAssignments;
714     }
715 
716     /**
717      * Sets the value of the totalCommitteeAssignments property.
718      * 
719      */
720     public void setTotalCommitteeAssignments(long value) {
721         this.totalCommitteeAssignments = value;
722     }
723 
724     /**
725      * Gets the value of the totalSpeakerAssignments property.
726      * 
727      */
728     @Basic
729     @Column(name = "TOTAL_SPEAKER_ASSIGNMENTS", precision = 20, scale = 0)
730     public long getTotalSpeakerAssignments() {
731         return totalSpeakerAssignments;
732     }
733 
734     /**
735      * Sets the value of the totalSpeakerAssignments property.
736      * 
737      */
738     public void setTotalSpeakerAssignments(long value) {
739         this.totalSpeakerAssignments = value;
740     }
741 
742     /**
743      * Gets the value of the currentPartyAssignments property.
744      * 
745      */
746     @Basic
747     @Column(name = "CURRENT_PARTY_ASSIGNMENTS", precision = 20, scale = 0)
748     public long getCurrentPartyAssignments() {
749         return currentPartyAssignments;
750     }
751 
752     /**
753      * Sets the value of the currentPartyAssignments property.
754      * 
755      */
756     public void setCurrentPartyAssignments(long value) {
757         this.currentPartyAssignments = value;
758     }
759 
760     /**
761      * Gets the value of the currentMinistryAssignments property.
762      * 
763      */
764     @Basic
765     @Column(name = "CURRENT_MINISTRY_ASSIGNMENTS", precision = 20, scale = 0)
766     public long getCurrentMinistryAssignments() {
767         return currentMinistryAssignments;
768     }
769 
770     /**
771      * Sets the value of the currentMinistryAssignments property.
772      * 
773      */
774     public void setCurrentMinistryAssignments(long value) {
775         this.currentMinistryAssignments = value;
776     }
777 
778     /**
779      * Gets the value of the currentCommitteeAssignments property.
780      * 
781      */
782     @Basic
783     @Column(name = "CURRENT_COMMITTEE_ASSIGNMENTS", precision = 20, scale = 0)
784     public long getCurrentCommitteeAssignments() {
785         return currentCommitteeAssignments;
786     }
787 
788     /**
789      * Sets the value of the currentCommitteeAssignments property.
790      * 
791      */
792     public void setCurrentCommitteeAssignments(long value) {
793         this.currentCommitteeAssignments = value;
794     }
795 
796     /**
797      * Gets the value of the currentSpeakerAssignments property.
798      * 
799      */
800     @Basic
801     @Column(name = "CURRENT_SPEAKER_ASSIGNMENTS", precision = 20, scale = 0)
802     public long getCurrentSpeakerAssignments() {
803         return currentSpeakerAssignments;
804     }
805 
806     /**
807      * Sets the value of the currentSpeakerAssignments property.
808      * 
809      */
810     public void setCurrentSpeakerAssignments(long value) {
811         this.currentSpeakerAssignments = value;
812     }
813 
814     public ViewRiksdagenPolitician withPersonId(String value) {
815         setPersonId(value);
816         return this;
817     }
818 
819     public ViewRiksdagenPolitician withFirstName(String value) {
820         setFirstName(value);
821         return this;
822     }
823 
824     public ViewRiksdagenPolitician withLastName(String value) {
825         setLastName(value);
826         return this;
827     }
828 
829     public ViewRiksdagenPolitician withParty(String value) {
830         setParty(value);
831         return this;
832     }
833 
834     public ViewRiksdagenPolitician withGender(String value) {
835         setGender(value);
836         return this;
837     }
838 
839     public ViewRiksdagenPolitician withBornYear(int value) {
840         setBornYear(value);
841         return this;
842     }
843 
844     public ViewRiksdagenPolitician withTotalAssignments(long value) {
845         setTotalAssignments(value);
846         return this;
847     }
848 
849     public ViewRiksdagenPolitician withCurrentAssignments(long value) {
850         setCurrentAssignments(value);
851         return this;
852     }
853 
854     public ViewRiksdagenPolitician withFirstAssignmentDate(Date value) {
855         setFirstAssignmentDate(value);
856         return this;
857     }
858 
859     public ViewRiksdagenPolitician withLastAssignmentDate(Date value) {
860         setLastAssignmentDate(value);
861         return this;
862     }
863 
864     public ViewRiksdagenPolitician withTotalDaysServed(long value) {
865         setTotalDaysServed(value);
866         return this;
867     }
868 
869     public ViewRiksdagenPolitician withTotalDaysServedParliament(long value) {
870         setTotalDaysServedParliament(value);
871         return this;
872     }
873 
874     public ViewRiksdagenPolitician withTotalDaysServedCommittee(long value) {
875         setTotalDaysServedCommittee(value);
876         return this;
877     }
878 
879     public ViewRiksdagenPolitician withTotalDaysServedGovernment(long value) {
880         setTotalDaysServedGovernment(value);
881         return this;
882     }
883 
884     public ViewRiksdagenPolitician withTotalDaysServedEu(long value) {
885         setTotalDaysServedEu(value);
886         return this;
887     }
888 
889     public ViewRiksdagenPolitician withActive(boolean value) {
890         setActive(value);
891         return this;
892     }
893 
894     public ViewRiksdagenPolitician withActiveEu(boolean value) {
895         setActiveEu(value);
896         return this;
897     }
898 
899     public ViewRiksdagenPolitician withActiveGovernment(boolean value) {
900         setActiveGovernment(value);
901         return this;
902     }
903 
904     public ViewRiksdagenPolitician withActiveCommittee(boolean value) {
905         setActiveCommittee(value);
906         return this;
907     }
908 
909     public ViewRiksdagenPolitician withActiveParliament(boolean value) {
910         setActiveParliament(value);
911         return this;
912     }
913 
914     public ViewRiksdagenPolitician withActiveParty(boolean value) {
915         setActiveParty(value);
916         return this;
917     }
918 
919     public ViewRiksdagenPolitician withActiveSpeaker(boolean value) {
920         setActiveSpeaker(value);
921         return this;
922     }
923 
924     public ViewRiksdagenPolitician withTotalDaysServedSpeaker(long value) {
925         setTotalDaysServedSpeaker(value);
926         return this;
927     }
928 
929     public ViewRiksdagenPolitician withTotalDaysServedParty(long value) {
930         setTotalDaysServedParty(value);
931         return this;
932     }
933 
934     public ViewRiksdagenPolitician withTotalPartyAssignments(long value) {
935         setTotalPartyAssignments(value);
936         return this;
937     }
938 
939     public ViewRiksdagenPolitician withTotalMinistryAssignments(long value) {
940         setTotalMinistryAssignments(value);
941         return this;
942     }
943 
944     public ViewRiksdagenPolitician withTotalCommitteeAssignments(long value) {
945         setTotalCommitteeAssignments(value);
946         return this;
947     }
948 
949     public ViewRiksdagenPolitician withTotalSpeakerAssignments(long value) {
950         setTotalSpeakerAssignments(value);
951         return this;
952     }
953 
954     public ViewRiksdagenPolitician withCurrentPartyAssignments(long value) {
955         setCurrentPartyAssignments(value);
956         return this;
957     }
958 
959     public ViewRiksdagenPolitician withCurrentMinistryAssignments(long value) {
960         setCurrentMinistryAssignments(value);
961         return this;
962     }
963 
964     public ViewRiksdagenPolitician withCurrentCommitteeAssignments(long value) {
965         setCurrentCommitteeAssignments(value);
966         return this;
967     }
968 
969     public ViewRiksdagenPolitician withCurrentSpeakerAssignments(long value) {
970         setCurrentSpeakerAssignments(value);
971         return this;
972     }
973 
974     public String toString() {
975         final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
976         final StringBuilder buffer = new StringBuilder();
977         append(null, buffer, strategy);
978         return buffer.toString();
979     }
980 
981     public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
982         strategy.appendStart(locator, this, buffer);
983         appendFields(locator, buffer, strategy);
984         strategy.appendEnd(locator, this, buffer);
985         return buffer;
986     }
987 
988     public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
989         {
990             String thePersonId;
991             thePersonId = this.getPersonId();
992             strategy.appendField(locator, this, "personId", buffer, thePersonId);
993         }
994         {
995             String theFirstName;
996             theFirstName = this.getFirstName();
997             strategy.appendField(locator, this, "firstName", buffer, theFirstName);
998         }
999         {
1000             String theLastName;
1001             theLastName = this.getLastName();
1002             strategy.appendField(locator, this, "lastName", buffer, theLastName);
1003         }
1004         {
1005             String theParty;
1006             theParty = this.getParty();
1007             strategy.appendField(locator, this, "party", buffer, theParty);
1008         }
1009         {
1010             String theGender;
1011             theGender = this.getGender();
1012             strategy.appendField(locator, this, "gender", buffer, theGender);
1013         }
1014         {
1015             int theBornYear;
1016             theBornYear = this.getBornYear();
1017             strategy.appendField(locator, this, "bornYear", buffer, theBornYear);
1018         }
1019         {
1020             long theTotalAssignments;
1021             theTotalAssignments = this.getTotalAssignments();
1022             strategy.appendField(locator, this, "totalAssignments", buffer, theTotalAssignments);
1023         }
1024         {
1025             long theCurrentAssignments;
1026             theCurrentAssignments = this.getCurrentAssignments();
1027             strategy.appendField(locator, this, "currentAssignments", buffer, theCurrentAssignments);
1028         }
1029         {
1030             Date theFirstAssignmentDate;
1031             theFirstAssignmentDate = this.getFirstAssignmentDate();
1032             strategy.appendField(locator, this, "firstAssignmentDate", buffer, theFirstAssignmentDate);
1033         }
1034         {
1035             Date theLastAssignmentDate;
1036             theLastAssignmentDate = this.getLastAssignmentDate();
1037             strategy.appendField(locator, this, "lastAssignmentDate", buffer, theLastAssignmentDate);
1038         }
1039         {
1040             long theTotalDaysServed;
1041             theTotalDaysServed = this.getTotalDaysServed();
1042             strategy.appendField(locator, this, "totalDaysServed", buffer, theTotalDaysServed);
1043         }
1044         {
1045             long theTotalDaysServedParliament;
1046             theTotalDaysServedParliament = this.getTotalDaysServedParliament();
1047             strategy.appendField(locator, this, "totalDaysServedParliament", buffer, theTotalDaysServedParliament);
1048         }
1049         {
1050             long theTotalDaysServedCommittee;
1051             theTotalDaysServedCommittee = this.getTotalDaysServedCommittee();
1052             strategy.appendField(locator, this, "totalDaysServedCommittee", buffer, theTotalDaysServedCommittee);
1053         }
1054         {
1055             long theTotalDaysServedGovernment;
1056             theTotalDaysServedGovernment = this.getTotalDaysServedGovernment();
1057             strategy.appendField(locator, this, "totalDaysServedGovernment", buffer, theTotalDaysServedGovernment);
1058         }
1059         {
1060             long theTotalDaysServedEu;
1061             theTotalDaysServedEu = this.getTotalDaysServedEu();
1062             strategy.appendField(locator, this, "totalDaysServedEu", buffer, theTotalDaysServedEu);
1063         }
1064         {
1065             boolean theActive;
1066             theActive = this.isActive();
1067             strategy.appendField(locator, this, "active", buffer, theActive);
1068         }
1069         {
1070             boolean theActiveEu;
1071             theActiveEu = this.isActiveEu();
1072             strategy.appendField(locator, this, "activeEu", buffer, theActiveEu);
1073         }
1074         {
1075             boolean theActiveGovernment;
1076             theActiveGovernment = this.isActiveGovernment();
1077             strategy.appendField(locator, this, "activeGovernment", buffer, theActiveGovernment);
1078         }
1079         {
1080             boolean theActiveCommittee;
1081             theActiveCommittee = this.isActiveCommittee();
1082             strategy.appendField(locator, this, "activeCommittee", buffer, theActiveCommittee);
1083         }
1084         {
1085             boolean theActiveParliament;
1086             theActiveParliament = this.isActiveParliament();
1087             strategy.appendField(locator, this, "activeParliament", buffer, theActiveParliament);
1088         }
1089         {
1090             boolean theActiveParty;
1091             theActiveParty = this.isActiveParty();
1092             strategy.appendField(locator, this, "activeParty", buffer, theActiveParty);
1093         }
1094         {
1095             boolean theActiveSpeaker;
1096             theActiveSpeaker = this.isActiveSpeaker();
1097             strategy.appendField(locator, this, "activeSpeaker", buffer, theActiveSpeaker);
1098         }
1099         {
1100             long theTotalDaysServedSpeaker;
1101             theTotalDaysServedSpeaker = this.getTotalDaysServedSpeaker();
1102             strategy.appendField(locator, this, "totalDaysServedSpeaker", buffer, theTotalDaysServedSpeaker);
1103         }
1104         {
1105             long theTotalDaysServedParty;
1106             theTotalDaysServedParty = this.getTotalDaysServedParty();
1107             strategy.appendField(locator, this, "totalDaysServedParty", buffer, theTotalDaysServedParty);
1108         }
1109         {
1110             long theTotalPartyAssignments;
1111             theTotalPartyAssignments = this.getTotalPartyAssignments();
1112             strategy.appendField(locator, this, "totalPartyAssignments", buffer, theTotalPartyAssignments);
1113         }
1114         {
1115             long theTotalMinistryAssignments;
1116             theTotalMinistryAssignments = this.getTotalMinistryAssignments();
1117             strategy.appendField(locator, this, "totalMinistryAssignments", buffer, theTotalMinistryAssignments);
1118         }
1119         {
1120             long theTotalCommitteeAssignments;
1121             theTotalCommitteeAssignments = this.getTotalCommitteeAssignments();
1122             strategy.appendField(locator, this, "totalCommitteeAssignments", buffer, theTotalCommitteeAssignments);
1123         }
1124         {
1125             long theTotalSpeakerAssignments;
1126             theTotalSpeakerAssignments = this.getTotalSpeakerAssignments();
1127             strategy.appendField(locator, this, "totalSpeakerAssignments", buffer, theTotalSpeakerAssignments);
1128         }
1129         {
1130             long theCurrentPartyAssignments;
1131             theCurrentPartyAssignments = this.getCurrentPartyAssignments();
1132             strategy.appendField(locator, this, "currentPartyAssignments", buffer, theCurrentPartyAssignments);
1133         }
1134         {
1135             long theCurrentMinistryAssignments;
1136             theCurrentMinistryAssignments = this.getCurrentMinistryAssignments();
1137             strategy.appendField(locator, this, "currentMinistryAssignments", buffer, theCurrentMinistryAssignments);
1138         }
1139         {
1140             long theCurrentCommitteeAssignments;
1141             theCurrentCommitteeAssignments = this.getCurrentCommitteeAssignments();
1142             strategy.appendField(locator, this, "currentCommitteeAssignments", buffer, theCurrentCommitteeAssignments);
1143         }
1144         {
1145             long theCurrentSpeakerAssignments;
1146             theCurrentSpeakerAssignments = this.getCurrentSpeakerAssignments();
1147             strategy.appendField(locator, this, "currentSpeakerAssignments", buffer, theCurrentSpeakerAssignments);
1148         }
1149         return buffer;
1150     }
1151 
1152     public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) {
1153         if ((object == null)||(this.getClass()!= object.getClass())) {
1154             return false;
1155         }
1156         if (this == object) {
1157             return true;
1158         }
1159         final ViewRiksdagenPolitician that = ((ViewRiksdagenPolitician) object);
1160         {
1161             String lhsPersonId;
1162             lhsPersonId = this.getPersonId();
1163             String rhsPersonId;
1164             rhsPersonId = that.getPersonId();
1165             if (!strategy.equals(LocatorUtils.property(thisLocator, "personId", lhsPersonId), LocatorUtils.property(thatLocator, "personId", rhsPersonId), lhsPersonId, rhsPersonId)) {
1166                 return false;
1167             }
1168         }
1169         {
1170             String lhsFirstName;
1171             lhsFirstName = this.getFirstName();
1172             String rhsFirstName;
1173             rhsFirstName = that.getFirstName();
1174             if (!strategy.equals(LocatorUtils.property(thisLocator, "firstName", lhsFirstName), LocatorUtils.property(thatLocator, "firstName", rhsFirstName), lhsFirstName, rhsFirstName)) {
1175                 return false;
1176             }
1177         }
1178         {
1179             String lhsLastName;
1180             lhsLastName = this.getLastName();
1181             String rhsLastName;
1182             rhsLastName = that.getLastName();
1183             if (!strategy.equals(LocatorUtils.property(thisLocator, "lastName", lhsLastName), LocatorUtils.property(thatLocator, "lastName", rhsLastName), lhsLastName, rhsLastName)) {
1184                 return false;
1185             }
1186         }
1187         {
1188             String lhsParty;
1189             lhsParty = this.getParty();
1190             String rhsParty;
1191             rhsParty = that.getParty();
1192             if (!strategy.equals(LocatorUtils.property(thisLocator, "party", lhsParty), LocatorUtils.property(thatLocator, "party", rhsParty), lhsParty, rhsParty)) {
1193                 return false;
1194             }
1195         }
1196         {
1197             String lhsGender;
1198             lhsGender = this.getGender();
1199             String rhsGender;
1200             rhsGender = that.getGender();
1201             if (!strategy.equals(LocatorUtils.property(thisLocator, "gender", lhsGender), LocatorUtils.property(thatLocator, "gender", rhsGender), lhsGender, rhsGender)) {
1202                 return false;
1203             }
1204         }
1205         {
1206             int lhsBornYear;
1207             lhsBornYear = this.getBornYear();
1208             int rhsBornYear;
1209             rhsBornYear = that.getBornYear();
1210             if (!strategy.equals(LocatorUtils.property(thisLocator, "bornYear", lhsBornYear), LocatorUtils.property(thatLocator, "bornYear", rhsBornYear), lhsBornYear, rhsBornYear)) {
1211                 return false;
1212             }
1213         }
1214         {
1215             long lhsTotalAssignments;
1216             lhsTotalAssignments = this.getTotalAssignments();
1217             long rhsTotalAssignments;
1218             rhsTotalAssignments = that.getTotalAssignments();
1219             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalAssignments", lhsTotalAssignments), LocatorUtils.property(thatLocator, "totalAssignments", rhsTotalAssignments), lhsTotalAssignments, rhsTotalAssignments)) {
1220                 return false;
1221             }
1222         }
1223         {
1224             long lhsCurrentAssignments;
1225             lhsCurrentAssignments = this.getCurrentAssignments();
1226             long rhsCurrentAssignments;
1227             rhsCurrentAssignments = that.getCurrentAssignments();
1228             if (!strategy.equals(LocatorUtils.property(thisLocator, "currentAssignments", lhsCurrentAssignments), LocatorUtils.property(thatLocator, "currentAssignments", rhsCurrentAssignments), lhsCurrentAssignments, rhsCurrentAssignments)) {
1229                 return false;
1230             }
1231         }
1232         {
1233             Date lhsFirstAssignmentDate;
1234             lhsFirstAssignmentDate = this.getFirstAssignmentDate();
1235             Date rhsFirstAssignmentDate;
1236             rhsFirstAssignmentDate = that.getFirstAssignmentDate();
1237             if (!strategy.equals(LocatorUtils.property(thisLocator, "firstAssignmentDate", lhsFirstAssignmentDate), LocatorUtils.property(thatLocator, "firstAssignmentDate", rhsFirstAssignmentDate), lhsFirstAssignmentDate, rhsFirstAssignmentDate)) {
1238                 return false;
1239             }
1240         }
1241         {
1242             Date lhsLastAssignmentDate;
1243             lhsLastAssignmentDate = this.getLastAssignmentDate();
1244             Date rhsLastAssignmentDate;
1245             rhsLastAssignmentDate = that.getLastAssignmentDate();
1246             if (!strategy.equals(LocatorUtils.property(thisLocator, "lastAssignmentDate", lhsLastAssignmentDate), LocatorUtils.property(thatLocator, "lastAssignmentDate", rhsLastAssignmentDate), lhsLastAssignmentDate, rhsLastAssignmentDate)) {
1247                 return false;
1248             }
1249         }
1250         {
1251             long lhsTotalDaysServed;
1252             lhsTotalDaysServed = this.getTotalDaysServed();
1253             long rhsTotalDaysServed;
1254             rhsTotalDaysServed = that.getTotalDaysServed();
1255             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalDaysServed", lhsTotalDaysServed), LocatorUtils.property(thatLocator, "totalDaysServed", rhsTotalDaysServed), lhsTotalDaysServed, rhsTotalDaysServed)) {
1256                 return false;
1257             }
1258         }
1259         {
1260             long lhsTotalDaysServedParliament;
1261             lhsTotalDaysServedParliament = this.getTotalDaysServedParliament();
1262             long rhsTotalDaysServedParliament;
1263             rhsTotalDaysServedParliament = that.getTotalDaysServedParliament();
1264             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalDaysServedParliament", lhsTotalDaysServedParliament), LocatorUtils.property(thatLocator, "totalDaysServedParliament", rhsTotalDaysServedParliament), lhsTotalDaysServedParliament, rhsTotalDaysServedParliament)) {
1265                 return false;
1266             }
1267         }
1268         {
1269             long lhsTotalDaysServedCommittee;
1270             lhsTotalDaysServedCommittee = this.getTotalDaysServedCommittee();
1271             long rhsTotalDaysServedCommittee;
1272             rhsTotalDaysServedCommittee = that.getTotalDaysServedCommittee();
1273             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalDaysServedCommittee", lhsTotalDaysServedCommittee), LocatorUtils.property(thatLocator, "totalDaysServedCommittee", rhsTotalDaysServedCommittee), lhsTotalDaysServedCommittee, rhsTotalDaysServedCommittee)) {
1274                 return false;
1275             }
1276         }
1277         {
1278             long lhsTotalDaysServedGovernment;
1279             lhsTotalDaysServedGovernment = this.getTotalDaysServedGovernment();
1280             long rhsTotalDaysServedGovernment;
1281             rhsTotalDaysServedGovernment = that.getTotalDaysServedGovernment();
1282             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalDaysServedGovernment", lhsTotalDaysServedGovernment), LocatorUtils.property(thatLocator, "totalDaysServedGovernment", rhsTotalDaysServedGovernment), lhsTotalDaysServedGovernment, rhsTotalDaysServedGovernment)) {
1283                 return false;
1284             }
1285         }
1286         {
1287             long lhsTotalDaysServedEu;
1288             lhsTotalDaysServedEu = this.getTotalDaysServedEu();
1289             long rhsTotalDaysServedEu;
1290             rhsTotalDaysServedEu = that.getTotalDaysServedEu();
1291             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalDaysServedEu", lhsTotalDaysServedEu), LocatorUtils.property(thatLocator, "totalDaysServedEu", rhsTotalDaysServedEu), lhsTotalDaysServedEu, rhsTotalDaysServedEu)) {
1292                 return false;
1293             }
1294         }
1295         {
1296             boolean lhsActive;
1297             lhsActive = this.isActive();
1298             boolean rhsActive;
1299             rhsActive = that.isActive();
1300             if (!strategy.equals(LocatorUtils.property(thisLocator, "active", lhsActive), LocatorUtils.property(thatLocator, "active", rhsActive), lhsActive, rhsActive)) {
1301                 return false;
1302             }
1303         }
1304         {
1305             boolean lhsActiveEu;
1306             lhsActiveEu = this.isActiveEu();
1307             boolean rhsActiveEu;
1308             rhsActiveEu = that.isActiveEu();
1309             if (!strategy.equals(LocatorUtils.property(thisLocator, "activeEu", lhsActiveEu), LocatorUtils.property(thatLocator, "activeEu", rhsActiveEu), lhsActiveEu, rhsActiveEu)) {
1310                 return false;
1311             }
1312         }
1313         {
1314             boolean lhsActiveGovernment;
1315             lhsActiveGovernment = this.isActiveGovernment();
1316             boolean rhsActiveGovernment;
1317             rhsActiveGovernment = that.isActiveGovernment();
1318             if (!strategy.equals(LocatorUtils.property(thisLocator, "activeGovernment", lhsActiveGovernment), LocatorUtils.property(thatLocator, "activeGovernment", rhsActiveGovernment), lhsActiveGovernment, rhsActiveGovernment)) {
1319                 return false;
1320             }
1321         }
1322         {
1323             boolean lhsActiveCommittee;
1324             lhsActiveCommittee = this.isActiveCommittee();
1325             boolean rhsActiveCommittee;
1326             rhsActiveCommittee = that.isActiveCommittee();
1327             if (!strategy.equals(LocatorUtils.property(thisLocator, "activeCommittee", lhsActiveCommittee), LocatorUtils.property(thatLocator, "activeCommittee", rhsActiveCommittee), lhsActiveCommittee, rhsActiveCommittee)) {
1328                 return false;
1329             }
1330         }
1331         {
1332             boolean lhsActiveParliament;
1333             lhsActiveParliament = this.isActiveParliament();
1334             boolean rhsActiveParliament;
1335             rhsActiveParliament = that.isActiveParliament();
1336             if (!strategy.equals(LocatorUtils.property(thisLocator, "activeParliament", lhsActiveParliament), LocatorUtils.property(thatLocator, "activeParliament", rhsActiveParliament), lhsActiveParliament, rhsActiveParliament)) {
1337                 return false;
1338             }
1339         }
1340         {
1341             boolean lhsActiveParty;
1342             lhsActiveParty = this.isActiveParty();
1343             boolean rhsActiveParty;
1344             rhsActiveParty = that.isActiveParty();
1345             if (!strategy.equals(LocatorUtils.property(thisLocator, "activeParty", lhsActiveParty), LocatorUtils.property(thatLocator, "activeParty", rhsActiveParty), lhsActiveParty, rhsActiveParty)) {
1346                 return false;
1347             }
1348         }
1349         {
1350             boolean lhsActiveSpeaker;
1351             lhsActiveSpeaker = this.isActiveSpeaker();
1352             boolean rhsActiveSpeaker;
1353             rhsActiveSpeaker = that.isActiveSpeaker();
1354             if (!strategy.equals(LocatorUtils.property(thisLocator, "activeSpeaker", lhsActiveSpeaker), LocatorUtils.property(thatLocator, "activeSpeaker", rhsActiveSpeaker), lhsActiveSpeaker, rhsActiveSpeaker)) {
1355                 return false;
1356             }
1357         }
1358         {
1359             long lhsTotalDaysServedSpeaker;
1360             lhsTotalDaysServedSpeaker = this.getTotalDaysServedSpeaker();
1361             long rhsTotalDaysServedSpeaker;
1362             rhsTotalDaysServedSpeaker = that.getTotalDaysServedSpeaker();
1363             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalDaysServedSpeaker", lhsTotalDaysServedSpeaker), LocatorUtils.property(thatLocator, "totalDaysServedSpeaker", rhsTotalDaysServedSpeaker), lhsTotalDaysServedSpeaker, rhsTotalDaysServedSpeaker)) {
1364                 return false;
1365             }
1366         }
1367         {
1368             long lhsTotalDaysServedParty;
1369             lhsTotalDaysServedParty = this.getTotalDaysServedParty();
1370             long rhsTotalDaysServedParty;
1371             rhsTotalDaysServedParty = that.getTotalDaysServedParty();
1372             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalDaysServedParty", lhsTotalDaysServedParty), LocatorUtils.property(thatLocator, "totalDaysServedParty", rhsTotalDaysServedParty), lhsTotalDaysServedParty, rhsTotalDaysServedParty)) {
1373                 return false;
1374             }
1375         }
1376         {
1377             long lhsTotalPartyAssignments;
1378             lhsTotalPartyAssignments = this.getTotalPartyAssignments();
1379             long rhsTotalPartyAssignments;
1380             rhsTotalPartyAssignments = that.getTotalPartyAssignments();
1381             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalPartyAssignments", lhsTotalPartyAssignments), LocatorUtils.property(thatLocator, "totalPartyAssignments", rhsTotalPartyAssignments), lhsTotalPartyAssignments, rhsTotalPartyAssignments)) {
1382                 return false;
1383             }
1384         }
1385         {
1386             long lhsTotalMinistryAssignments;
1387             lhsTotalMinistryAssignments = this.getTotalMinistryAssignments();
1388             long rhsTotalMinistryAssignments;
1389             rhsTotalMinistryAssignments = that.getTotalMinistryAssignments();
1390             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalMinistryAssignments", lhsTotalMinistryAssignments), LocatorUtils.property(thatLocator, "totalMinistryAssignments", rhsTotalMinistryAssignments), lhsTotalMinistryAssignments, rhsTotalMinistryAssignments)) {
1391                 return false;
1392             }
1393         }
1394         {
1395             long lhsTotalCommitteeAssignments;
1396             lhsTotalCommitteeAssignments = this.getTotalCommitteeAssignments();
1397             long rhsTotalCommitteeAssignments;
1398             rhsTotalCommitteeAssignments = that.getTotalCommitteeAssignments();
1399             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalCommitteeAssignments", lhsTotalCommitteeAssignments), LocatorUtils.property(thatLocator, "totalCommitteeAssignments", rhsTotalCommitteeAssignments), lhsTotalCommitteeAssignments, rhsTotalCommitteeAssignments)) {
1400                 return false;
1401             }
1402         }
1403         {
1404             long lhsTotalSpeakerAssignments;
1405             lhsTotalSpeakerAssignments = this.getTotalSpeakerAssignments();
1406             long rhsTotalSpeakerAssignments;
1407             rhsTotalSpeakerAssignments = that.getTotalSpeakerAssignments();
1408             if (!strategy.equals(LocatorUtils.property(thisLocator, "totalSpeakerAssignments", lhsTotalSpeakerAssignments), LocatorUtils.property(thatLocator, "totalSpeakerAssignments", rhsTotalSpeakerAssignments), lhsTotalSpeakerAssignments, rhsTotalSpeakerAssignments)) {
1409                 return false;
1410             }
1411         }
1412         {
1413             long lhsCurrentPartyAssignments;
1414             lhsCurrentPartyAssignments = this.getCurrentPartyAssignments();
1415             long rhsCurrentPartyAssignments;
1416             rhsCurrentPartyAssignments = that.getCurrentPartyAssignments();
1417             if (!strategy.equals(LocatorUtils.property(thisLocator, "currentPartyAssignments", lhsCurrentPartyAssignments), LocatorUtils.property(thatLocator, "currentPartyAssignments", rhsCurrentPartyAssignments), lhsCurrentPartyAssignments, rhsCurrentPartyAssignments)) {
1418                 return false;
1419             }
1420         }
1421         {
1422             long lhsCurrentMinistryAssignments;
1423             lhsCurrentMinistryAssignments = this.getCurrentMinistryAssignments();
1424             long rhsCurrentMinistryAssignments;
1425             rhsCurrentMinistryAssignments = that.getCurrentMinistryAssignments();
1426             if (!strategy.equals(LocatorUtils.property(thisLocator, "currentMinistryAssignments", lhsCurrentMinistryAssignments), LocatorUtils.property(thatLocator, "currentMinistryAssignments", rhsCurrentMinistryAssignments), lhsCurrentMinistryAssignments, rhsCurrentMinistryAssignments)) {
1427                 return false;
1428             }
1429         }
1430         {
1431             long lhsCurrentCommitteeAssignments;
1432             lhsCurrentCommitteeAssignments = this.getCurrentCommitteeAssignments();
1433             long rhsCurrentCommitteeAssignments;
1434             rhsCurrentCommitteeAssignments = that.getCurrentCommitteeAssignments();
1435             if (!strategy.equals(LocatorUtils.property(thisLocator, "currentCommitteeAssignments", lhsCurrentCommitteeAssignments), LocatorUtils.property(thatLocator, "currentCommitteeAssignments", rhsCurrentCommitteeAssignments), lhsCurrentCommitteeAssignments, rhsCurrentCommitteeAssignments)) {
1436                 return false;
1437             }
1438         }
1439         {
1440             long lhsCurrentSpeakerAssignments;
1441             lhsCurrentSpeakerAssignments = this.getCurrentSpeakerAssignments();
1442             long rhsCurrentSpeakerAssignments;
1443             rhsCurrentSpeakerAssignments = that.getCurrentSpeakerAssignments();
1444             if (!strategy.equals(LocatorUtils.property(thisLocator, "currentSpeakerAssignments", lhsCurrentSpeakerAssignments), LocatorUtils.property(thatLocator, "currentSpeakerAssignments", rhsCurrentSpeakerAssignments), lhsCurrentSpeakerAssignments, rhsCurrentSpeakerAssignments)) {
1445                 return false;
1446             }
1447         }
1448         return true;
1449     }
1450 
1451     public boolean equals(Object object) {
1452         final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
1453         return equals(null, null, object, strategy);
1454     }
1455 
1456     public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
1457         int currentHashCode = 1;
1458         {
1459             String thePersonId;
1460             thePersonId = this.getPersonId();
1461             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "personId", thePersonId), currentHashCode, thePersonId);
1462         }
1463         {
1464             String theFirstName;
1465             theFirstName = this.getFirstName();
1466             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "firstName", theFirstName), currentHashCode, theFirstName);
1467         }
1468         {
1469             String theLastName;
1470             theLastName = this.getLastName();
1471             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastName", theLastName), currentHashCode, theLastName);
1472         }
1473         {
1474             String theParty;
1475             theParty = this.getParty();
1476             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "party", theParty), currentHashCode, theParty);
1477         }
1478         {
1479             String theGender;
1480             theGender = this.getGender();
1481             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "gender", theGender), currentHashCode, theGender);
1482         }
1483         {
1484             int theBornYear;
1485             theBornYear = this.getBornYear();
1486             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "bornYear", theBornYear), currentHashCode, theBornYear);
1487         }
1488         {
1489             long theTotalAssignments;
1490             theTotalAssignments = this.getTotalAssignments();
1491             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalAssignments", theTotalAssignments), currentHashCode, theTotalAssignments);
1492         }
1493         {
1494             long theCurrentAssignments;
1495             theCurrentAssignments = this.getCurrentAssignments();
1496             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "currentAssignments", theCurrentAssignments), currentHashCode, theCurrentAssignments);
1497         }
1498         {
1499             Date theFirstAssignmentDate;
1500             theFirstAssignmentDate = this.getFirstAssignmentDate();
1501             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "firstAssignmentDate", theFirstAssignmentDate), currentHashCode, theFirstAssignmentDate);
1502         }
1503         {
1504             Date theLastAssignmentDate;
1505             theLastAssignmentDate = this.getLastAssignmentDate();
1506             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lastAssignmentDate", theLastAssignmentDate), currentHashCode, theLastAssignmentDate);
1507         }
1508         {
1509             long theTotalDaysServed;
1510             theTotalDaysServed = this.getTotalDaysServed();
1511             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalDaysServed", theTotalDaysServed), currentHashCode, theTotalDaysServed);
1512         }
1513         {
1514             long theTotalDaysServedParliament;
1515             theTotalDaysServedParliament = this.getTotalDaysServedParliament();
1516             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalDaysServedParliament", theTotalDaysServedParliament), currentHashCode, theTotalDaysServedParliament);
1517         }
1518         {
1519             long theTotalDaysServedCommittee;
1520             theTotalDaysServedCommittee = this.getTotalDaysServedCommittee();
1521             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalDaysServedCommittee", theTotalDaysServedCommittee), currentHashCode, theTotalDaysServedCommittee);
1522         }
1523         {
1524             long theTotalDaysServedGovernment;
1525             theTotalDaysServedGovernment = this.getTotalDaysServedGovernment();
1526             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalDaysServedGovernment", theTotalDaysServedGovernment), currentHashCode, theTotalDaysServedGovernment);
1527         }
1528         {
1529             long theTotalDaysServedEu;
1530             theTotalDaysServedEu = this.getTotalDaysServedEu();
1531             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalDaysServedEu", theTotalDaysServedEu), currentHashCode, theTotalDaysServedEu);
1532         }
1533         {
1534             boolean theActive;
1535             theActive = this.isActive();
1536             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "active", theActive), currentHashCode, theActive);
1537         }
1538         {
1539             boolean theActiveEu;
1540             theActiveEu = this.isActiveEu();
1541             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "activeEu", theActiveEu), currentHashCode, theActiveEu);
1542         }
1543         {
1544             boolean theActiveGovernment;
1545             theActiveGovernment = this.isActiveGovernment();
1546             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "activeGovernment", theActiveGovernment), currentHashCode, theActiveGovernment);
1547         }
1548         {
1549             boolean theActiveCommittee;
1550             theActiveCommittee = this.isActiveCommittee();
1551             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "activeCommittee", theActiveCommittee), currentHashCode, theActiveCommittee);
1552         }
1553         {
1554             boolean theActiveParliament;
1555             theActiveParliament = this.isActiveParliament();
1556             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "activeParliament", theActiveParliament), currentHashCode, theActiveParliament);
1557         }
1558         {
1559             boolean theActiveParty;
1560             theActiveParty = this.isActiveParty();
1561             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "activeParty", theActiveParty), currentHashCode, theActiveParty);
1562         }
1563         {
1564             boolean theActiveSpeaker;
1565             theActiveSpeaker = this.isActiveSpeaker();
1566             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "activeSpeaker", theActiveSpeaker), currentHashCode, theActiveSpeaker);
1567         }
1568         {
1569             long theTotalDaysServedSpeaker;
1570             theTotalDaysServedSpeaker = this.getTotalDaysServedSpeaker();
1571             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalDaysServedSpeaker", theTotalDaysServedSpeaker), currentHashCode, theTotalDaysServedSpeaker);
1572         }
1573         {
1574             long theTotalDaysServedParty;
1575             theTotalDaysServedParty = this.getTotalDaysServedParty();
1576             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalDaysServedParty", theTotalDaysServedParty), currentHashCode, theTotalDaysServedParty);
1577         }
1578         {
1579             long theTotalPartyAssignments;
1580             theTotalPartyAssignments = this.getTotalPartyAssignments();
1581             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalPartyAssignments", theTotalPartyAssignments), currentHashCode, theTotalPartyAssignments);
1582         }
1583         {
1584             long theTotalMinistryAssignments;
1585             theTotalMinistryAssignments = this.getTotalMinistryAssignments();
1586             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalMinistryAssignments", theTotalMinistryAssignments), currentHashCode, theTotalMinistryAssignments);
1587         }
1588         {
1589             long theTotalCommitteeAssignments;
1590             theTotalCommitteeAssignments = this.getTotalCommitteeAssignments();
1591             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalCommitteeAssignments", theTotalCommitteeAssignments), currentHashCode, theTotalCommitteeAssignments);
1592         }
1593         {
1594             long theTotalSpeakerAssignments;
1595             theTotalSpeakerAssignments = this.getTotalSpeakerAssignments();
1596             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "totalSpeakerAssignments", theTotalSpeakerAssignments), currentHashCode, theTotalSpeakerAssignments);
1597         }
1598         {
1599             long theCurrentPartyAssignments;
1600             theCurrentPartyAssignments = this.getCurrentPartyAssignments();
1601             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "currentPartyAssignments", theCurrentPartyAssignments), currentHashCode, theCurrentPartyAssignments);
1602         }
1603         {
1604             long theCurrentMinistryAssignments;
1605             theCurrentMinistryAssignments = this.getCurrentMinistryAssignments();
1606             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "currentMinistryAssignments", theCurrentMinistryAssignments), currentHashCode, theCurrentMinistryAssignments);
1607         }
1608         {
1609             long theCurrentCommitteeAssignments;
1610             theCurrentCommitteeAssignments = this.getCurrentCommitteeAssignments();
1611             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "currentCommitteeAssignments", theCurrentCommitteeAssignments), currentHashCode, theCurrentCommitteeAssignments);
1612         }
1613         {
1614             long theCurrentSpeakerAssignments;
1615             theCurrentSpeakerAssignments = this.getCurrentSpeakerAssignments();
1616             currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "currentSpeakerAssignments", theCurrentSpeakerAssignments), currentHashCode, theCurrentSpeakerAssignments);
1617         }
1618         return currentHashCode;
1619     }
1620 
1621     public int hashCode() {
1622         final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
1623         return this.hashCode(null, strategy);
1624     }
1625 
1626 }