DocumentProposalData.java

/*
 * Copyright 2010 James Pether Sörling
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 *	$Id$
 *  $HeadURL$
*/
// 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.24 at 11:40:07 PM CET 
//


package com.hack23.cia.model.external.riksdagen.dokumentstatus.impl;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
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;


/**
 * The Class DocumentProposalData.
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DocumentProposalData", propOrder = {
    "proposalNumber",
    "designation",
    "wording",
    "wording2",
    "wording3",
    "wording4",
    "committee",
    "chamber",
    "processedIn",
    "decisionType"
})
@Entity(name = "DocumentProposalData")
@Table(name = "DOCUMENT_PROPOSAL_DATA")
@Inheritance(strategy = InheritanceType.JOINED)
public class DocumentProposalData
    implements ModelObject
{

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** The proposal number. */
    @XmlElement(name = "nummer")
    protected int proposalNumber;
    
    /** The designation. */
    @XmlElement(name = "beteckning")
    protected int designation;
    
    /** The wording. */
    @XmlElement(name = "lydelse", required = true)
    protected String wording;
    
    /** The wording 2. */
    @XmlElement(name = "lydelse2", required = true)
    protected String wording2;
    
    /** The wording 3. */
    @XmlElement(name = "lydelse3", required = true)
    protected String wording3;
    
    /** The wording 4. */
    @XmlElement(name = "lydelse4", required = true)
    protected String wording4;
    
    /** The committee. */
    @XmlElement(name = "utskottet", required = true)
    protected String committee;
    
    /** The chamber. */
    @XmlElement(name = "kammaren", required = true)
    protected String chamber;
    
    /** The processed in. */
    @XmlElement(name = "behandlas_i", required = true)
    protected String processedIn;
    
    /** The decision type. */
    @XmlElement(name = "kammarbeslutstyp", required = true)
    protected String decisionType;
    
    /** The hjid. */
    @XmlAttribute(name = "Hjid")
    protected Long hjid;

    /**
	 * Gets the proposal number.
	 *
	 * @return the proposal number
	 */
    @Basic
    @Column(name = "PROPOSAL_NUMBER", precision = 10, scale = 0)
    public int getProposalNumber() {
        return proposalNumber;
    }

    /**
	 * Sets the proposal number.
	 *
	 * @param value the new proposal number
	 */
    public void setProposalNumber(final int value) {
        this.proposalNumber = value;
    }

    /**
	 * Gets the designation.
	 *
	 * @return the designation
	 */
    @Basic
    @Column(name = "DESIGNATION", precision = 10, scale = 0)
    public int getDesignation() {
        return designation;
    }

    /**
	 * Sets the designation.
	 *
	 * @param value the new designation
	 */
    public void setDesignation(final int value) {
        this.designation = value;
    }

    /**
	 * Gets the wording.
	 *
	 * @return the wording
	 */
    @Basic
    @Column(name = "WORDING")
    public String getWording() {
        return wording;
    }

    /**
	 * Sets the wording.
	 *
	 * @param value the new wording
	 */
    public void setWording(final String value) {
        this.wording = value;
    }

    /**
	 * Gets the wording 2.
	 *
	 * @return the wording 2
	 */
    @Basic
    @Column(name = "WORDING_2")
    public String getWording2() {
        return wording2;
    }

    /**
	 * Sets the wording 2.
	 *
	 * @param value the new wording 2
	 */
    public void setWording2(final String value) {
        this.wording2 = value;
    }

    /**
	 * Gets the wording 3.
	 *
	 * @return the wording 3
	 */
    @Basic
    @Column(name = "WORDING_3")
    public String getWording3() {
        return wording3;
    }

    /**
	 * Sets the wording 3.
	 *
	 * @param value the new wording 3
	 */
    public void setWording3(final String value) {
        this.wording3 = value;
    }

    /**
	 * Gets the wording 4.
	 *
	 * @return the wording 4
	 */
    @Basic
    @Column(name = "WORDING_4")
    public String getWording4() {
        return wording4;
    }

    /**
	 * Sets the wording 4.
	 *
	 * @param value the new wording 4
	 */
    public void setWording4(final String value) {
        this.wording4 = value;
    }

    /**
	 * Gets the committee.
	 *
	 * @return the committee
	 */
    @Basic
    @Column(name = "COMMITTEE")
    public String getCommittee() {
        return committee;
    }

    /**
	 * Sets the committee.
	 *
	 * @param value the new committee
	 */
    public void setCommittee(final String value) {
        this.committee = value;
    }

    /**
	 * Gets the chamber.
	 *
	 * @return the chamber
	 */
    @Basic
    @Column(name = "CHAMBER")
    public String getChamber() {
        return chamber;
    }

    /**
	 * Sets the chamber.
	 *
	 * @param value the new chamber
	 */
    public void setChamber(final String value) {
        this.chamber = value;
    }

    /**
	 * Gets the processed in.
	 *
	 * @return the processed in
	 */
    @Basic
    @Column(name = "PROCESSED_IN")
    public String getProcessedIn() {
        return processedIn;
    }

    /**
	 * Sets the processed in.
	 *
	 * @param value the new processed in
	 */
    public void setProcessedIn(final String value) {
        this.processedIn = value;
    }

    /**
	 * Gets the decision type.
	 *
	 * @return the decision type
	 */
    @Basic
    @Column(name = "DECISION_TYPE")
    public String getDecisionType() {
        return decisionType;
    }

    /**
	 * Sets the decision type.
	 *
	 * @param value the new decision type
	 */
    public void setDecisionType(final String value) {
        this.decisionType = value;
    }

    /**
	 * With proposal number.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withProposalNumber(final int value) {
        setProposalNumber(value);
        return this;
    }

    /**
	 * With designation.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withDesignation(final int value) {
        setDesignation(value);
        return this;
    }

    /**
	 * With wording.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withWording(final String value) {
        setWording(value);
        return this;
    }

    /**
	 * With wording 2.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withWording2(final String value) {
        setWording2(value);
        return this;
    }

    /**
	 * With wording 3.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withWording3(final String value) {
        setWording3(value);
        return this;
    }

    /**
	 * With wording 4.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withWording4(final String value) {
        setWording4(value);
        return this;
    }

    /**
	 * With committee.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withCommittee(final String value) {
        setCommittee(value);
        return this;
    }

    /**
	 * With chamber.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withChamber(final String value) {
        setChamber(value);
        return this;
    }

    /**
	 * With processed in.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withProcessedIn(final String value) {
        setProcessedIn(value);
        return this;
    }

    /**
	 * With decision type.
	 *
	 * @param value the value
	 * @return the document proposal data
	 */
    public DocumentProposalData withDecisionType(final String value) {
        setDecisionType(value);
        return this;
    }

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public final String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}


    /**
	 * Gets the hjid.
	 *
	 * @return the hjid
	 */
    @Id
    @Column(name = "HJID")
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getHjid() {
        return hjid;
    }

    /**
	 * Sets the hjid.
	 *
	 * @param value the new hjid
	 */
    public void setHjid(final Long value) {
        this.hjid = value;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    public boolean equals(final Object object) {
    	return EqualsBuilder.reflectionEquals(this,object,"hjid");
    }


	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public final int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

}