package com.northglass.entity;
|
|
import java.util.Date;
|
import java.util.HashSet;
|
import java.util.Set;
|
|
import javax.persistence.CascadeType;
|
import javax.persistence.Entity;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.OneToMany;
|
import javax.persistence.OneToOne;
|
import javax.persistence.Table;
|
import javax.persistence.Transient;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
@Entity
|
@Table(name="gmms_shelf_rank")
|
public class ShelfRank extends IdEntity {
|
|
private String number;
|
private String state;
|
private String usestatu;
|
private RawPackage rawPackage;
|
private Date lastestTime;
|
/**
|
* 启/禁用
|
*/
|
private String flag;
|
private Set<ShelfTask> shelfTaskes=new HashSet<ShelfTask>();
|
|
private int infoid;
|
private String glassId;
|
private Integer pieces;
|
private Double width;
|
private Double length;
|
private Double thickness;
|
private String color;
|
private String precent;
|
private Date createTime;
|
private Integer completePieces;
|
|
public ShelfRank() { }
|
|
public ShelfRank(String number,int pieces , double width,double length, double thickness , String color, Date createTime) {
|
this.number = number;
|
this.pieces = pieces;
|
this.width = width;
|
this.length = length;
|
this.thickness = thickness;
|
this.color = color;
|
this.createTime = createTime;
|
}
|
|
public ShelfRank(String number, String state) {
|
this.number = number;
|
this.state = state;
|
}
|
@OneToMany(cascade=CascadeType.REFRESH, mappedBy="shelfRank")
|
public Set<ShelfTask> getShelfTaskes() {
|
return shelfTaskes;
|
}
|
|
public void setShelfTaskes(Set<ShelfTask> shelfTaskes) {
|
this.shelfTaskes = shelfTaskes;
|
}
|
|
public String getNumber() {
|
return number;
|
}
|
|
public void setNumber(String number) {
|
this.number = number;
|
}
|
|
public String getState() {
|
return state;
|
}
|
|
public void setState(String state) {
|
this.state = state;
|
}
|
|
public String getUsestatu() {
|
return usestatu;
|
}
|
|
public void setUsestatu(String usestatu) {
|
this.usestatu = usestatu;
|
}
|
|
public Date getLastestTime() {
|
return lastestTime;
|
}
|
|
public void setLastestTime(Date lastestTime) {
|
this.lastestTime = lastestTime;
|
}
|
|
@JsonIgnore
|
@OneToOne(cascade=CascadeType.REFRESH)
|
@JoinColumn(name="raw_package_id")
|
public RawPackage getRawPackage() {
|
return rawPackage;
|
}
|
|
@JsonIgnore
|
public void setRawPackage(RawPackage rawPackage) {
|
this.rawPackage = rawPackage;
|
}
|
|
|
public String getGlassId() {
|
return glassId;
|
}
|
|
public void setGlassId(String glassId) {
|
this.glassId = glassId;
|
}
|
|
public Integer getPieces() {
|
return pieces;
|
}
|
|
public void setPieces(Integer pieces) {
|
this.pieces = pieces;
|
}
|
|
public Double getWidth() {
|
return width;
|
}
|
|
public void setWidth(Double width) {
|
this.width = width;
|
}
|
|
public Double getLength() {
|
return length;
|
}
|
|
public void setLength(Double length) {
|
this.length = length;
|
}
|
|
public Double getThickness() {
|
return thickness;
|
}
|
|
public void setThickness(Double thickness) {
|
this.thickness = thickness;
|
}
|
|
public String getColor() {
|
return color;
|
}
|
|
public void setColor(String color) {
|
this.color = color;
|
}
|
|
public String getPrecent() {
|
return precent;
|
}
|
|
public void setPrecent(String precent) {
|
this.precent = precent;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public Integer getCompletePieces() {
|
return completePieces;
|
}
|
|
public void setCompletePieces(Integer completePieces) {
|
this.completePieces = completePieces;
|
}
|
|
public String getFlag() {
|
return flag;
|
}
|
|
public void setFlag(String flag) {
|
this.flag = flag;
|
}
|
|
public int getInfoid() {
|
return infoid;
|
}
|
|
public void setInfoid(int infoid) {
|
this.infoid = infoid;
|
}
|
|
@Override
|
public String toString() {
|
return "ShelfRank [id=" + id + ",number=" + number + ", state=" + state + ", glassId=" + glassId + ",createTime=" + createTime + ",thickness=" + thickness + ",length=" + length + ",width=" + width + ", pieces=" + pieces + ", flag=" + flag + "]";
|
}
|
|
}
|