Volume.java

package com.tradecloud.domain.item;

import javax.persistence.Embeddable;
import javax.xml.bind.annotation.XmlAttribute;
import java.math.BigDecimal;

/**
 * Created by IntelliJ IDEA.
 * User: ds
 * Date: 2014/10/10
 * Time: 3:10 PM
 * To change this template use File | Settings | File Templates.
 */
@Embeddable
public class Volume {

    @XmlAttribute
    private BigDecimal height;

    @XmlAttribute
    private BigDecimal width;

    @XmlAttribute
    private BigDecimal length;

    public BigDecimal getHeight() {
        return height;
    }

    public void setHeight(BigDecimal height) {
        this.height = height;
    }

    public BigDecimal getWidth() {
        return width;
    }

    public void setWidth(BigDecimal width) {
        this.width = width;
    }

    public BigDecimal getLength() {
        return length;
    }

    public void setLength(BigDecimal length) {
        this.length = length;
    }
}