ViewRiksdagenCommittee.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.committee.impl;
import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
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 ViewRiksdagenCommittee complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ViewRiksdagenCommittee">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="embeddedId" type="{http://committee.data.application.internal.model.cia.hack23.com/impl}RiksdagenCommitteeEmbeddedId"/>
* <element name="totalAssignments" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="firstAssignmentDate" type="{http://www.w3.org/2001/XMLSchema}date"/>
* <element name="lastAssignmentDate" type="{http://www.w3.org/2001/XMLSchema}date"/>
* <element name="totalDaysServed" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="currentMemberSize" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="active" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ViewRiksdagenCommittee", propOrder = {
"embeddedId",
"totalAssignments",
"firstAssignmentDate",
"lastAssignmentDate",
"totalDaysServed",
"currentMemberSize",
"active"
})
@Entity(name = "ViewRiksdagenCommittee")
@Table(name = "VIEW_RIKSDAGEN_COMMITTEE")
@Inheritance(strategy = InheritanceType.JOINED)
public class ViewRiksdagenCommittee
implements ModelObject
{
/**
*
*/
private static final long serialVersionUID = 1L;
@XmlElement(required = true)
protected RiksdagenCommitteeEmbeddedId embeddedId;
protected long totalAssignments;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(XmlDateTypeAdapter.class)
@XmlSchemaType(name = "date")
protected Date firstAssignmentDate;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(XmlDateTypeAdapter.class)
@XmlSchemaType(name = "date")
protected Date lastAssignmentDate;
protected long totalDaysServed;
protected long currentMemberSize;
protected boolean active;
/**
* Gets the value of the embeddedId property.
*
* @return
* possible object is
* {@link RiksdagenCommitteeEmbeddedId }
*
*/
@EmbeddedId
@AttributeOverrides({
@AttributeOverride(name = "detail", column = @Column(name = "EMBEDDED_ID_DETAIL")),
@AttributeOverride(name = "orgCode", column = @Column(name = "EMBEDDED_ID_ORG_CODE"))
})
public RiksdagenCommitteeEmbeddedId getEmbeddedId() {
return embeddedId;
}
/**
* Sets the value of the embeddedId property.
*
* @param value
* allowed object is
* {@link RiksdagenCommitteeEmbeddedId }
*
*/
public void setEmbeddedId(final RiksdagenCommitteeEmbeddedId value) {
this.embeddedId = value;
}
/**
* Gets the value of the totalAssignments property.
*
*/
@Basic
@Column(name = "TOTAL_ASSIGNMENTS", precision = 20)
public long getTotalAssignments() {
return totalAssignments;
}
/**
* Sets the value of the totalAssignments property.
*
*/
public void setTotalAssignments(final long value) {
this.totalAssignments = value;
}
/**
* Gets the value of the firstAssignmentDate property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "FIRST_ASSIGNMENT_DATE")
@Temporal(TemporalType.DATE)
public Date getFirstAssignmentDate() {
return firstAssignmentDate;
}
/**
* Sets the value of the firstAssignmentDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFirstAssignmentDate(final Date value) {
this.firstAssignmentDate = value;
}
/**
* Gets the value of the lastAssignmentDate property.
*
* @return
* possible object is
* {@link String }
*
*/
@Basic
@Column(name = "LAST_ASSIGNMENT_DATE")
@Temporal(TemporalType.DATE)
public Date getLastAssignmentDate() {
return lastAssignmentDate;
}
/**
* Sets the value of the lastAssignmentDate property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLastAssignmentDate(final Date value) {
this.lastAssignmentDate = value;
}
/**
* Gets the value of the totalDaysServed property.
*
*/
@Basic
@Column(name = "TOTAL_DAYS_SERVED", precision = 20)
public long getTotalDaysServed() {
return totalDaysServed;
}
/**
* Sets the value of the totalDaysServed property.
*
*/
public void setTotalDaysServed(final long value) {
this.totalDaysServed = value;
}
/**
* Gets the value of the currentMemberSize property.
*
*/
@Basic
@Column(name = "CURRENT_MEMBER_SIZE", precision = 20)
public long getCurrentMemberSize() {
return currentMemberSize;
}
/**
* Sets the value of the currentMemberSize property.
*
*/
public void setCurrentMemberSize(final long value) {
this.currentMemberSize = value;
}
/**
* Gets the value of the active property.
*
*/
@Basic
@Column(name = "ACTIVE")
public boolean isActive() {
return active;
}
/**
* Sets the value of the active property.
*
*/
public void setActive(final boolean value) {
this.active = value;
}
public ViewRiksdagenCommittee withEmbeddedId(final RiksdagenCommitteeEmbeddedId value) {
setEmbeddedId(value);
return this;
}
public ViewRiksdagenCommittee withTotalAssignments(final long value) {
setTotalAssignments(value);
return this;
}
public ViewRiksdagenCommittee withFirstAssignmentDate(final Date value) {
setFirstAssignmentDate(value);
return this;
}
public ViewRiksdagenCommittee withLastAssignmentDate(final Date value) {
setLastAssignmentDate(value);
return this;
}
public ViewRiksdagenCommittee withTotalDaysServed(final long value) {
setTotalDaysServed(value);
return this;
}
public ViewRiksdagenCommittee withCurrentMemberSize(final long value) {
setCurrentMemberSize(value);
return this;
}
public ViewRiksdagenCommittee withActive(final boolean value) {
setActive(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);
}
}