package com.northglass.entity;
|
|
import javax.persistence.Entity;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.ManyToOne;
|
import javax.persistence.Table;
|
|
@Entity
|
@Table(name="gmms_cutting_opt_pattern")
|
public class CuttingOptPattern extends IdEntity {
|
|
private double width;
|
private double height;
|
private double thickness;
|
private int pieces;
|
private String cutting_info;
|
private String color;
|
private String state;
|
private String txt_name;//txt文件的标识
|
private String groups;//分组
|
private OptPattern optPattern;//指向optpattern
|
private Long raw_package_txt_id;//指向rawpackagetxt
|
|
|
@ManyToOne
|
@JoinColumn(name="opt_pattern_id")
|
public OptPattern getOptPattern() {
|
return optPattern;
|
}
|
|
public void setOptPattern(OptPattern optPattern) {
|
this.optPattern = optPattern;
|
}
|
|
public Long getRaw_package_txt_id() {
|
return raw_package_txt_id;
|
}
|
|
public void setRaw_package_txt_id(Long raw_package_txt_id) {
|
this.raw_package_txt_id = raw_package_txt_id;
|
}
|
|
public double getWidth() {
|
return width;
|
}
|
|
public void setWidth(double width) {
|
this.width = width;
|
}
|
|
|
public double getHeight() {
|
return height;
|
}
|
|
public void setHeight(double height) {
|
this.height = height;
|
}
|
|
public double getThickness() {
|
return thickness;
|
}
|
|
|
public void setThickness(double thickness) {
|
this.thickness = thickness;
|
}
|
|
|
|
public int getPieces() {
|
return pieces;
|
}
|
|
public void setPieces(int pieces) {
|
this.pieces = pieces;
|
}
|
|
|
|
public String getCutting_info() {
|
return cutting_info;
|
}
|
|
public void setCutting_info(String cutting_info) {
|
this.cutting_info = cutting_info;
|
}
|
|
public String getColor() {
|
return color;
|
}
|
|
public void setColor(String color) {
|
this.color = color;
|
}
|
|
public String getState() {
|
return state;
|
}
|
|
public void setState(String state) {
|
this.state = state;
|
}
|
|
public String getTxt_name() {
|
return txt_name;
|
}
|
|
public void setTxt_name(String txt_name) {
|
this.txt_name = txt_name;
|
}
|
|
public String getGroups() {
|
return groups;
|
}
|
|
public void setGroups(String groups) {
|
this.groups = groups;
|
}
|
|
|
|
public CuttingOptPattern() {
|
super();
|
}
|
|
public CuttingOptPattern(double width, double height, double thickness, int pieces, String cutting_info,
|
String color, String state, String txt_name, String groups, OptPattern optPattern,
|
Long raw_package_txt_id) {
|
super();
|
this.width = width;
|
this.height = height;
|
this.thickness = thickness;
|
this.pieces = pieces;
|
this.cutting_info = cutting_info;
|
this.color = color;
|
this.state = state;
|
this.txt_name = txt_name;
|
this.groups = groups;
|
this.optPattern = optPattern;
|
this.raw_package_txt_id = raw_package_txt_id;
|
}
|
|
@Override
|
public String toString() {
|
return "CuttingOptPattern [width=" + width + ", height=" + height + ", thickness=" + thickness + ", pieces="
|
+ pieces + ", cutting_info=" + cutting_info + ", color=" + color + ", state=" + state + ", txt_name="
|
+ txt_name + ", groups=" + groups + ", optPattern=" + optPattern + ", raw_package_txt_id="
|
+ raw_package_txt_id + "]";
|
}
|
|
|
}
|