ViewRiksdagenPartyBallotSupportAnnualSummaryEmbeddedId.java
//
// 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 javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
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;
/**
* <p>Java class for ViewRiksdagenPartyBallotSupportAnnualSummaryEmbeddedId complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ViewRiksdagenPartyBallotSupportAnnualSummaryEmbeddedId">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="date" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="party" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="other_party" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ViewRiksdagenPartyBallotSupportAnnualSummaryEmbeddedId", propOrder = {
"date",
"party",
"otherParty"
})
@Embeddable
public class ViewRiksdagenPartyBallotSupportAnnualSummaryEmbeddedId
implements ModelObject
{
/**
*
*/
private static final long serialVersionUID = 1L;
@XmlElement(required = true)
protected String date;
@XmlElement(required = true)
protected String party;
@XmlElement(name = "other_party", required = true)
protected String otherParty;
/**
* Gets the value of the date property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "DATE_")
public String getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDate(final String value) {
this.date = 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 otherParty property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "OTHER_PARTY")
public String getOtherParty() {
return otherParty;
}
/**
* Sets the value of the otherParty property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOtherParty(final String value) {
this.otherParty = value;
}
public ViewRiksdagenPartyBallotSupportAnnualSummaryEmbeddedId withDate(final String value) {
setDate(value);
return this;
}
public ViewRiksdagenPartyBallotSupportAnnualSummaryEmbeddedId withParty(final String value) {
setParty(value);
return this;
}
public ViewRiksdagenPartyBallotSupportAnnualSummaryEmbeddedId withOtherParty(final String value) {
setOtherParty(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);
}
}