DataAgentWorkOrder.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.impl;



import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
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.XmlSchemaType;
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 DataAgentWorkOrder complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="DataAgentWorkOrder"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="target" type="{http://data.application.internal.model.cia.hack23.com/impl}DataAgentTarget" minOccurs="0"/&gt;
 *         &lt;element name="operation" type="{http://data.application.internal.model.cia.hack23.com/impl}DataAgentOperation" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DataAgentWorkOrder", propOrder = {
    "target",
    "operation"
})
@Entity(name = "DataAgentWorkOrder")
@Table(name = "DATA_AGENT_WORK_ORDER")
@Inheritance(strategy = InheritanceType.JOINED)
public class DataAgentWorkOrder
    implements ModelObject
{

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@XmlSchemaType(name = "string")
    protected DataAgentTarget target;
    @XmlSchemaType(name = "string")
    protected DataAgentOperation operation;
    @XmlAttribute(name = "Hjid")
    protected Long hjid;

    /**
     * Gets the value of the target property.
     * 
     * @return
     *     possible object is
     *     {@link DataAgentTarget }
     *     
     */
    @Basic
    @Column(name = "TARGET")
    @Enumerated(EnumType.STRING)
    public DataAgentTarget getTarget() {
        return target;
    }

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

    /**
     * Gets the value of the operation property.
     * 
     * @return
     *     possible object is
     *     {@link DataAgentOperation }
     *     
     */
    @Basic
    @Column(name = "OPERATION_")
    @Enumerated(EnumType.STRING)
    public DataAgentOperation getOperation() {
        return operation;
    }

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

    public DataAgentWorkOrder withTarget(final DataAgentTarget value) {
        setTarget(value);
        return this;
    }

    public DataAgentWorkOrder withOperation(final DataAgentOperation value) {
        setOperation(value);
        return this;
    }

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


    /**
     * Gets the value of the hjid property.
     * 
     * @return
     *     possible object is
     *     {@link Long }
     *     
     */
    @Id
    @Column(name = "HJID")
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getHjid() {
        return hjid;
    }

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

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

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

}