|
@@ -0,0 +1,96 @@
|
|
|
+package com.huimv.produce.repo;
|
|
|
+
|
|
|
+import javax.persistence.Entity;
|
|
|
+import javax.persistence.Column;
|
|
|
+import javax.persistence.GenerationType;
|
|
|
+import javax.persistence.Table;
|
|
|
+import javax.persistence.GeneratedValue;
|
|
|
+import java.sql.Timestamp;
|
|
|
+import java.io.Serializable;
|
|
|
+import javax.persistence.Id;
|
|
|
+
|
|
|
+@Entity
|
|
|
+@Table(name = "prod_day_weight")
|
|
|
+public class ProdDayWeightEntity implements Serializable {
|
|
|
+
|
|
|
+private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+@Id
|
|
|
+@GeneratedValue(strategy = GenerationType.IDENTITY)@Column(name = "id", nullable = false)
|
|
|
+private Integer id;
|
|
|
+
|
|
|
+@Column(name = "add_time")
|
|
|
+private Timestamp addTime;
|
|
|
+
|
|
|
+@Column(name = "farm_id")
|
|
|
+private Integer farmId;
|
|
|
+
|
|
|
+@Column(name = "gross_weight")
|
|
|
+private Float grossWeight;
|
|
|
+
|
|
|
+@Column(name = "net_weight")
|
|
|
+private Float netWeight;
|
|
|
+
|
|
|
+@Column(name = "tare_weight")
|
|
|
+private Float tareWeight;
|
|
|
+
|
|
|
+public void setId(Integer id) {
|
|
|
+this.id = id;
|
|
|
+}
|
|
|
+
|
|
|
+public Integer getId() {
|
|
|
+return id;
|
|
|
+}
|
|
|
+
|
|
|
+public void setAddTime(Timestamp addTime) {
|
|
|
+this.addTime = addTime;
|
|
|
+}
|
|
|
+
|
|
|
+public Timestamp getAddTime() {
|
|
|
+return addTime;
|
|
|
+}
|
|
|
+
|
|
|
+public void setFarmId(Integer farmId) {
|
|
|
+this.farmId = farmId;
|
|
|
+}
|
|
|
+
|
|
|
+public Integer getFarmId() {
|
|
|
+return farmId;
|
|
|
+}
|
|
|
+
|
|
|
+public void setGrossWeight(Float grossWeight) {
|
|
|
+this.grossWeight = grossWeight;
|
|
|
+}
|
|
|
+
|
|
|
+public Float getGrossWeight() {
|
|
|
+return grossWeight;
|
|
|
+}
|
|
|
+
|
|
|
+public void setNetWeight(Float netWeight) {
|
|
|
+this.netWeight = netWeight;
|
|
|
+}
|
|
|
+
|
|
|
+public Float getNetWeight() {
|
|
|
+return netWeight;
|
|
|
+}
|
|
|
+
|
|
|
+public void setTareWeight(Float tareWeight) {
|
|
|
+this.tareWeight = tareWeight;
|
|
|
+}
|
|
|
+
|
|
|
+public Float getTareWeight() {
|
|
|
+return tareWeight;
|
|
|
+}
|
|
|
+
|
|
|
+@Override
|
|
|
+public String toString() {
|
|
|
+return "ProdDayWeightEntity{" +
|
|
|
+ "id=" + id + '\'' +
|
|
|
+ "addTime=" + addTime + '\'' +
|
|
|
+ "farmId=" + farmId + '\'' +
|
|
|
+ "grossWeight=" + grossWeight + '\'' +
|
|
|
+ "netWeight=" + netWeight + '\'' +
|
|
|
+ "tareWeight=" + tareWeight + '\'' +
|
|
|
+ '}';
|
|
|
+}
|
|
|
+}
|