ContainerDTO.java

package com.tradecloud.dto.consignment;

import com.tradecloud.domain.container.ContainerTypeCode;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import java.math.BigDecimal;

@XmlRootElement(name = "containerUsageDTO")
@XmlAccessorType(XmlAccessType.FIELD)
public class ContainerDTO {

    @XmlAttribute
    private ContainerTypeCode containerType;

    @XmlAttribute
    private BigDecimal quantity;

    public ContainerTypeCode getContainerType() {
        return containerType;
    }

    public void setContainerType(ContainerTypeCode containerType) {
        this.containerType = containerType;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }
}