model.internal.application.user.impl/src/main/java/com/hack23/cia/model/internal/application/data/party/impl/ViewRiksdagenPartyMember.java

Summary

Maintainability
D
2 days
Test Coverage
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.02.25 at 12:05:09 AM CET
//


package com.hack23.cia.model.internal.application.data.party.impl;


import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.hack23.cia.model.common.api.ModelObject;
import com.hack23.cia.model.common.impl.xml.XmlDateTypeAdapter;


/**
 * <p>Java class for ViewRiksdagenPartyMember complex type.
 *
 * <p>The following schema fragment specifies the expected content contained within this class.
 *
 * <pre>
 * &lt;complexType name="ViewRiksdagenPartyMember"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="hjid" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
 *         &lt;element name="address" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="city" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="coAddress" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="email" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="faxNumber" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="partyId" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="partyName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="phoneNumber" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="postCode" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="registeredDate" type="{http://www.w3.org/2001/XMLSchema}date"/&gt;
 *         &lt;element name="shortCode" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="website" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="bornYear" type="{http://www.w3.org/2001/XMLSchema}int"/&gt;
 *         &lt;element name="electionRegion" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="firstName" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="gender" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="hangarGuid" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="image_url_192" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="image_url_80" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="image_url_max" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="last_name" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="party" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="person_url_xml" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="place" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *         &lt;element name="status" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ViewRiksdagenPartyMember", propOrder = {
    "id",
    "hjid",
    "address",
    "city",
    "coAddress",
    "email",
    "faxNumber",
    "partyId",
    "partyName",
    "phoneNumber",
    "postCode",
    "registeredDate",
    "shortCode",
    "website",
    "bornYear",
    "electionRegion",
    "firstName",
    "gender",
    "hangarGuid",
    "imageUrl192",
    "imageUrl80",
    "imageUrlMax",
    "lastName",
    "party",
    "personUrlXml",
    "place",
    "status"
})
@Entity(name = "ViewRiksdagenPartyMember")
@Table(name = "VIEW_RIKSDAGEN_PARTY_MEMBER")
@Inheritance(strategy = InheritanceType.JOINED)
public class ViewRiksdagenPartyMember
    implements ModelObject
{

    /**
     *
     */
    private static final long serialVersionUID = 1L;
    @XmlElement(required = true)
    protected String id;
    protected long hjid;
    @XmlElement(required = true)
    protected String address;
    @XmlElement(required = true)
    protected String city;
    @XmlElement(required = true)
    protected String coAddress;
    @XmlElement(required = true)
    protected String email;
    @XmlElement(required = true)
    protected String faxNumber;
    @XmlElement(required = true)
    protected String partyId;
    @XmlElement(required = true)
    protected String partyName;
    @XmlElement(required = true)
    protected String phoneNumber;
    @XmlElement(required = true)
    protected String postCode;
    @XmlElement(required = true, type = String.class)
    @XmlJavaTypeAdapter(XmlDateTypeAdapter.class)
    @XmlSchemaType(name = "date")
    protected Date registeredDate;
    @XmlElement(required = true)
    protected String shortCode;
    @XmlElement(required = true)
    protected String website;
    protected int bornYear;
    @XmlElement(required = true)
    protected String electionRegion;
    @XmlElement(required = true)
    protected String firstName;
    @XmlElement(required = true)
    protected String gender;
    @XmlElement(required = true)
    protected String hangarGuid;
    @XmlElement(name = "image_url_192", required = true)
    protected String imageUrl192;
    @XmlElement(name = "image_url_80", required = true)
    protected String imageUrl80;
    @XmlElement(name = "image_url_max", required = true)
    protected String imageUrlMax;
    @XmlElement(name = "last_name", required = true)
    protected String lastName;
    @XmlElement(required = true)
    protected String party;
    @XmlElement(name = "person_url_xml", required = true)
    protected String personUrlXml;
    @XmlElement(required = true)
    protected String place;
    @XmlElement(required = true)
    protected String status;

    /**
     * Gets the value of the id property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Id
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setId(final String value) {
        this.id = value;
    }

    /**
     * Gets the value of the hjid property.
     *
     */
    @Basic
    @Column(name = "HJID", precision = 20)
    public long getHjid() {
        return hjid;
    }

    /**
     * Sets the value of the hjid property.
     *
     */
    public void setHjid(final long value) {
        this.hjid = value;
    }

    /**
     * Gets the value of the address property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "ADDRESS")
    public String getAddress() {
        return address;
    }

    /**
     * Sets the value of the address property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setAddress(final String value) {
        this.address = value;
    }

    /**
     * Gets the value of the city property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "CITY")
    public String getCity() {
        return city;
    }

    /**
     * Sets the value of the city property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setCity(final String value) {
        this.city = value;
    }

    /**
     * Gets the value of the coAddress property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "CO_ADDRESS")
    public String getCoAddress() {
        return coAddress;
    }

    /**
     * Sets the value of the coAddress property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setCoAddress(final String value) {
        this.coAddress = value;
    }

    /**
     * Gets the value of the email property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "EMAIL")
    public String getEmail() {
        return email;
    }

    /**
     * Sets the value of the email property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setEmail(final String value) {
        this.email = value;
    }

    /**
     * Gets the value of the faxNumber property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "FAX_NUMBER")
    public String getFaxNumber() {
        return faxNumber;
    }

    /**
     * Sets the value of the faxNumber property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setFaxNumber(final String value) {
        this.faxNumber = value;
    }

    /**
     * Gets the value of the partyId property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "PARTY_ID")
    public String getPartyId() {
        return partyId;
    }

    /**
     * Sets the value of the partyId property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setPartyId(final String value) {
        this.partyId = value;
    }

    /**
     * Gets the value of the partyName property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "PARTY_NAME")
    public String getPartyName() {
        return partyName;
    }

    /**
     * Sets the value of the partyName property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setPartyName(final String value) {
        this.partyName = value;
    }

    /**
     * Gets the value of the phoneNumber property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "PHONE_NUMBER")
    public String getPhoneNumber() {
        return phoneNumber;
    }

    /**
     * Sets the value of the phoneNumber property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setPhoneNumber(final String value) {
        this.phoneNumber = value;
    }

    /**
     * Gets the value of the postCode property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "POST_CODE")
    public String getPostCode() {
        return postCode;
    }

    /**
     * Sets the value of the postCode property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setPostCode(final String value) {
        this.postCode = value;
    }

    /**
     * Gets the value of the registeredDate property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "REGISTERED_DATE")
    @Temporal(TemporalType.DATE)
    public Date getRegisteredDate() {
        return registeredDate;
    }

    /**
     * Sets the value of the registeredDate property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setRegisteredDate(final Date value) {
        this.registeredDate = value;
    }

    /**
     * Gets the value of the shortCode property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "SHORT_CODE")
    public String getShortCode() {
        return shortCode;
    }

    /**
     * Sets the value of the shortCode property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setShortCode(final String value) {
        this.shortCode = value;
    }

    /**
     * Gets the value of the website property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "WEBSITE")
    public String getWebsite() {
        return website;
    }

    /**
     * Sets the value of the website property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setWebsite(final String value) {
        this.website = value;
    }

    /**
     * Gets the value of the bornYear property.
     *
     */
    @Basic
    @Column(name = "BORN_YEAR", precision = 10, scale = 0)
    public int getBornYear() {
        return bornYear;
    }

    /**
     * Sets the value of the bornYear property.
     *
     */
    public void setBornYear(final int value) {
        this.bornYear = value;
    }

    /**
     * Gets the value of the electionRegion property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "ELECTION_REGION")
    public String getElectionRegion() {
        return electionRegion;
    }

    /**
     * Sets the value of the electionRegion property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setElectionRegion(final String value) {
        this.electionRegion = value;
    }

    /**
     * Gets the value of the firstName property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "FIRST_NAME")
    public String getFirstName() {
        return firstName;
    }

    /**
     * Sets the value of the firstName property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setFirstName(final String value) {
        this.firstName = value;
    }

    /**
     * Gets the value of the gender property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "GENDER")
    public String getGender() {
        return gender;
    }

    /**
     * Sets the value of the gender property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setGender(final String value) {
        this.gender = value;
    }

    /**
     * Gets the value of the hangarGuid property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "HANGAR_GUID")
    public String getHangarGuid() {
        return hangarGuid;
    }

    /**
     * Sets the value of the hangarGuid property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setHangarGuid(final String value) {
        this.hangarGuid = value;
    }

    /**
     * Gets the value of the imageUrl192 property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "IMAGE_URL_192")
    public String getImageUrl192() {
        return imageUrl192;
    }

    /**
     * Sets the value of the imageUrl192 property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setImageUrl192(final String value) {
        this.imageUrl192 = value;
    }

    /**
     * Gets the value of the imageUrl80 property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "IMAGE_URL_80")
    public String getImageUrl80() {
        return imageUrl80;
    }

    /**
     * Sets the value of the imageUrl80 property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setImageUrl80(final String value) {
        this.imageUrl80 = value;
    }

    /**
     * Gets the value of the imageUrlMax property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "IMAGE_URL_MAX")
    public String getImageUrlMax() {
        return imageUrlMax;
    }

    /**
     * Sets the value of the imageUrlMax property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setImageUrlMax(final String value) {
        this.imageUrlMax = value;
    }

    /**
     * Gets the value of the lastName property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "LAST_NAME")
    public String getLastName() {
        return lastName;
    }

    /**
     * Sets the value of the lastName property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setLastName(final String value) {
        this.lastName = value;
    }

    /**
     * Gets the value of the party property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "PARTY")
    public String getParty() {
        return party;
    }

    /**
     * Sets the value of the party property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setParty(final String value) {
        this.party = value;
    }

    /**
     * Gets the value of the personUrlXml property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "PERSON_URL_XML")
    public String getPersonUrlXml() {
        return personUrlXml;
    }

    /**
     * Sets the value of the personUrlXml property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setPersonUrlXml(final String value) {
        this.personUrlXml = value;
    }

    /**
     * Gets the value of the place property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "PLACE")
    public String getPlace() {
        return place;
    }

    /**
     * Sets the value of the place property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setPlace(final String value) {
        this.place = value;
    }

    /**
     * Gets the value of the status property.
     *
     * @return
     *     possible object is
     *     {@link String }
     *
     */
    @Basic
    @Column(name = "STATUS")
    public String getStatus() {
        return status;
    }

    /**
     * Sets the value of the status property.
     *
     * @param value
     *     allowed object is
     *     {@link String }
     *
     */
    public void setStatus(final String value) {
        this.status = value;
    }

    public ViewRiksdagenPartyMember withId(final String value) {
        setId(value);
        return this;
    }

    public ViewRiksdagenPartyMember withHjid(final long value) {
        setHjid(value);
        return this;
    }

    public ViewRiksdagenPartyMember withAddress(final String value) {
        setAddress(value);
        return this;
    }

    public ViewRiksdagenPartyMember withCity(final String value) {
        setCity(value);
        return this;
    }

    public ViewRiksdagenPartyMember withCoAddress(final String value) {
        setCoAddress(value);
        return this;
    }

    public ViewRiksdagenPartyMember withEmail(final String value) {
        setEmail(value);
        return this;
    }

    public ViewRiksdagenPartyMember withFaxNumber(final String value) {
        setFaxNumber(value);
        return this;
    }

    public ViewRiksdagenPartyMember withPartyId(final String value) {
        setPartyId(value);
        return this;
    }

    public ViewRiksdagenPartyMember withPartyName(final String value) {
        setPartyName(value);
        return this;
    }

    public ViewRiksdagenPartyMember withPhoneNumber(final String value) {
        setPhoneNumber(value);
        return this;
    }

    public ViewRiksdagenPartyMember withPostCode(final String value) {
        setPostCode(value);
        return this;
    }

    public ViewRiksdagenPartyMember withRegisteredDate(final Date value) {
        setRegisteredDate(value);
        return this;
    }

    public ViewRiksdagenPartyMember withShortCode(final String value) {
        setShortCode(value);
        return this;
    }

    public ViewRiksdagenPartyMember withWebsite(final String value) {
        setWebsite(value);
        return this;
    }

    public ViewRiksdagenPartyMember withBornYear(final int value) {
        setBornYear(value);
        return this;
    }

    public ViewRiksdagenPartyMember withElectionRegion(final String value) {
        setElectionRegion(value);
        return this;
    }

    public ViewRiksdagenPartyMember withFirstName(final String value) {
        setFirstName(value);
        return this;
    }

    public ViewRiksdagenPartyMember withGender(final String value) {
        setGender(value);
        return this;
    }

    public ViewRiksdagenPartyMember withHangarGuid(final String value) {
        setHangarGuid(value);
        return this;
    }

    public ViewRiksdagenPartyMember withImageUrl192(final String value) {
        setImageUrl192(value);
        return this;
    }

    public ViewRiksdagenPartyMember withImageUrl80(final String value) {
        setImageUrl80(value);
        return this;
    }

    public ViewRiksdagenPartyMember withImageUrlMax(final String value) {
        setImageUrlMax(value);
        return this;
    }

    public ViewRiksdagenPartyMember withLastName(final String value) {
        setLastName(value);
        return this;
    }

    public ViewRiksdagenPartyMember withParty(final String value) {
        setParty(value);
        return this;
    }

    public ViewRiksdagenPartyMember withPersonUrlXml(final String value) {
        setPersonUrlXml(value);
        return this;
    }

    public ViewRiksdagenPartyMember withPlace(final String value) {
        setPlace(value);
        return this;
    }

    public ViewRiksdagenPartyMember withStatus(final String value) {
        setStatus(value);
        return this;
    }

    @Override
    public final String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }


    @Override
    public final boolean equals(final Object obj) {
        return EqualsBuilder.reflectionEquals(this, obj);
    }

    @Override
    public final int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

}