IntegratedMD5.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 = "integratedMD5")
@Access(AccessType.FIELD)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "IntegratedMD5")
public class IntegratedMD5 extends PersistenceBase implements Integrated {
public enum type {
ORDER,
PRODUCT,
CARTON,
SHIPMENT
}
@NotNull
@Enumerated(EnumType.STRING)
private IntegratedMD5.type type;
@NotNull
private String reference;
@NotNull
private String md5;
public IntegratedMD5() {
}
public IntegratedMD5(String reference, String currentMD5, IntegratedMD5.type type) {
this.reference = reference;
this.md5 = currentMD5;
this.type = type;
}
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public IntegratedMD5.type getType() {
return type;
}
public void setType(IntegratedMD5.type type) {
this.type = type;
}
public String getMd5() {
return md5;
}
public void setMd5(String md5) {
this.md5 = md5;
}
@Override
public String getXml() {
return null;
}
}