IntegratedShipment.java

package com.tradecloud.domain.integration;

import com.tradecloud.common.base.PersistenceBase;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@Table(name = "IntegratedShipment")
@Access(AccessType.FIELD)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "IntegratedShipment")
@NamedQueries({@NamedQuery(query = "from IntegratedShipment io order by io.id", name = "findAllIntegratedShipmentSortedById")})
public class IntegratedShipment extends PersistenceBase implements Integrated {

    @NotNull
    private String username;
    @NotNull
    private String reference;
    @NotNull
    private String xml;
    @NotNull
    private String uniqueConversationId;

    public IntegratedShipment() {
    }

    public IntegratedShipment(@NotNull String username, @NotNull String reference, @NotNull String xml, @NotNull String uniqueConversationId) {
        this.username = username;
        this.reference = reference;
        this.xml = xml;
        this.uniqueConversationId = uniqueConversationId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public String getXml() {
        return xml;
    }

    public void setXml(String xml) {
        this.xml = xml;
    }

    public String getUniqueConversationId() {
        return uniqueConversationId;
    }

    public void setUniqueConversationId(String uniqueConversationId) {
        this.uniqueConversationId = uniqueConversationId;
    }
}