penyesuaian entity produk dengan setting not null di database
This commit is contained in:
parent
ef5067ee34
commit
a9d859057d
@ -12,7 +12,6 @@ import javax.persistence.JoinColumn;
|
|||||||
import javax.persistence.ManyToOne;
|
import javax.persistence.ManyToOne;
|
||||||
import javax.persistence.OneToMany;
|
import javax.persistence.OneToMany;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonBackReference;
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
@ -231,8 +230,7 @@ public class Produk extends BaseMasterProduk {
|
|||||||
private Integer levelProdukId;
|
private Integer levelProdukId;
|
||||||
|
|
||||||
@Caption(value = "Kode Produk")
|
@Caption(value = "Kode Produk")
|
||||||
@NotNull(message = "Kd Produk tidak boleh kosong")
|
@Column(name = "KdProduk", nullable = true, length = 6)
|
||||||
@Column(name = "KdProduk", nullable = false, length = 6)
|
|
||||||
private String kdProduk;
|
private String kdProduk;
|
||||||
|
|
||||||
@Caption(value = "Spesifikasi")
|
@Caption(value = "Spesifikasi")
|
||||||
@ -340,23 +338,19 @@ public class Produk extends BaseMasterProduk {
|
|||||||
private String kekuatan;
|
private String kekuatan;
|
||||||
|
|
||||||
@Caption(value = "Nama Produk")
|
@Caption(value = "Nama Produk")
|
||||||
@NotNull(message = "Nama Produk tidak boleh kosong")
|
@Column(name = "NamaProduk", nullable = true, length = 150)
|
||||||
@Column(name = "NamaProduk", nullable = false, length = 150)
|
|
||||||
private String namaProduk;
|
private String namaProduk;
|
||||||
|
|
||||||
@Caption(value = "Nilai Normal")
|
@Caption(value = "Nilai Normal")
|
||||||
@NotNull(message = "Nilai Normal tidak boleh kosong")
|
@Column(name = "NilaiNormal", nullable = true)
|
||||||
@Column(name = "NilaiNormal", nullable = false)
|
|
||||||
private short nilaiNormal;
|
private short nilaiNormal;
|
||||||
|
|
||||||
@Caption(value = "QProduk")
|
@Caption(value = "QProduk")
|
||||||
@NotNull(message = "QProduk tidak boleh kosong")
|
@Column(name = "QProduk", nullable = true)
|
||||||
@Column(name = "QProduk", nullable = false)
|
|
||||||
private Integer qProduk;
|
private Integer qProduk;
|
||||||
|
|
||||||
@Caption(value = "Qty Jual Terkecil")
|
@Caption(value = "Qty Jual Terkecil")
|
||||||
@NotNull(message = "Qty Jual Terkecil tidak boleh kosong")
|
@Column(name = "QtyJualTerkecil", nullable = true)
|
||||||
@Column(name = "QtyJualTerkecil", nullable = false)
|
|
||||||
private Double qtyJualTerkecil;
|
private Double qtyJualTerkecil;
|
||||||
|
|
||||||
@Caption(value = "Qty Kalori")
|
@Caption(value = "Qty Kalori")
|
||||||
@ -380,13 +374,11 @@ public class Produk extends BaseMasterProduk {
|
|||||||
private Double qtyProtein;
|
private Double qtyProtein;
|
||||||
|
|
||||||
@Caption(value = "Qty Satu Kemasan")
|
@Caption(value = "Qty Satu Kemasan")
|
||||||
@NotNull(message = "Qty Satu Kemasan tidak boleh kosong")
|
@Column(name = "QtySatuKemasan", nullable = true)
|
||||||
@Column(name = "QtySatuKemasan", nullable = false)
|
|
||||||
private Integer qtySatuKemasan;
|
private Integer qtySatuKemasan;
|
||||||
|
|
||||||
@Caption(value = "Qty Terkecil")
|
@Caption(value = "Qty Terkecil")
|
||||||
@NotNull(message = "Qty Terkecil tidak boleh kosong")
|
@Column(name = "QtyTerkecil", nullable = true)
|
||||||
@Column(name = "QtyTerkecil", nullable = false)
|
|
||||||
private Double qtyTerkecil;
|
private Double qtyTerkecil;
|
||||||
|
|
||||||
@Caption(value = "Tanggal Produksi")
|
@Caption(value = "Tanggal Produksi")
|
||||||
|
|||||||
@ -6,10 +6,8 @@ import javax.persistence.Column;
|
|||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.ManyToOne;
|
import javax.persistence.ManyToOne;
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
|
|
||||||
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
||||||
import com.jasamedika.medifirst2000.entities.BahanSample;
|
|
||||||
import com.jasamedika.medifirst2000.helper.Caption;
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -32,7 +30,6 @@ public class ProdukVO extends BaseMasterVO {
|
|||||||
this.bahanSample = bahanSample;
|
this.bahanSample = bahanSample;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Caption(value = "Deskripsi Produk")
|
@Caption(value = "Deskripsi Produk")
|
||||||
@Column(name = "DeskripsiProduk", nullable = true, length = 300)
|
@Column(name = "DeskripsiProduk", nullable = true, length = 300)
|
||||||
private String deskripsiProduk;
|
private String deskripsiProduk;
|
||||||
@ -62,7 +59,6 @@ public class ProdukVO extends BaseMasterVO {
|
|||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "ObjectDepartemenFk")
|
@JoinColumn(name = "ObjectDepartemenFk")
|
||||||
@NotNull(message = "Object Departemen Harus Diisi")
|
|
||||||
@Caption(value = "Object Departemen")
|
@Caption(value = "Object Departemen")
|
||||||
private DepartemenVO departemen;
|
private DepartemenVO departemen;
|
||||||
|
|
||||||
@ -73,7 +69,6 @@ public class ProdukVO extends BaseMasterVO {
|
|||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "ObjectDetailJenisProdukFk")
|
@JoinColumn(name = "ObjectDetailJenisProdukFk")
|
||||||
@NotNull(message = "Object Detail Jenis Produk Harus Diisi")
|
|
||||||
@Caption(value = "Object Detail Jenis Produk")
|
@Caption(value = "Object Detail Jenis Produk")
|
||||||
private DetailJenisProdukVO detailJenisProduk;
|
private DetailJenisProdukVO detailJenisProduk;
|
||||||
|
|
||||||
@ -111,7 +106,6 @@ public class ProdukVO extends BaseMasterVO {
|
|||||||
private LevelProdukVO levelProduk;
|
private LevelProdukVO levelProduk;
|
||||||
|
|
||||||
@Caption(value = "Kode Produk")
|
@Caption(value = "Kode Produk")
|
||||||
@NotNull(message = "Kd Produk tidak boleh kosong")
|
|
||||||
@Column(name = "KdProduk", nullable = false, length = 6)
|
@Column(name = "KdProduk", nullable = false, length = 6)
|
||||||
private String kdProduk;
|
private String kdProduk;
|
||||||
|
|
||||||
@ -164,22 +158,18 @@ public class ProdukVO extends BaseMasterVO {
|
|||||||
private String kekuatan;
|
private String kekuatan;
|
||||||
|
|
||||||
@Caption(value = "Nama Produk")
|
@Caption(value = "Nama Produk")
|
||||||
@NotNull(message = "Nama Produk tidak boleh kosong")
|
|
||||||
@Column(name = "NamaProduk", nullable = false, length = 150)
|
@Column(name = "NamaProduk", nullable = false, length = 150)
|
||||||
private String namaProduk;
|
private String namaProduk;
|
||||||
|
|
||||||
@Caption(value = "Nilai Normal")
|
@Caption(value = "Nilai Normal")
|
||||||
@NotNull(message = "Nilai Normal tidak boleh kosong")
|
|
||||||
@Column(name = "NilaiNormal", nullable = false)
|
@Column(name = "NilaiNormal", nullable = false)
|
||||||
private short nilaiNormal;
|
private short nilaiNormal;
|
||||||
|
|
||||||
@Caption(value = "QProduk")
|
@Caption(value = "QProduk")
|
||||||
@NotNull(message = "QProduk tidak boleh kosong")
|
|
||||||
@Column(name = "QProduk", nullable = false)
|
@Column(name = "QProduk", nullable = false)
|
||||||
private Integer qProduk;
|
private Integer qProduk;
|
||||||
|
|
||||||
@Caption(value = "Qty Jual Terkecil")
|
@Caption(value = "Qty Jual Terkecil")
|
||||||
@NotNull(message = "Qty Jual Terkecil tidak boleh kosong")
|
|
||||||
@Column(name = "QtyJualTerkecil", nullable = false)
|
@Column(name = "QtyJualTerkecil", nullable = false)
|
||||||
private Double qtyJualTerkecil;
|
private Double qtyJualTerkecil;
|
||||||
|
|
||||||
@ -204,12 +194,10 @@ public class ProdukVO extends BaseMasterVO {
|
|||||||
private Double qtyProtein;
|
private Double qtyProtein;
|
||||||
|
|
||||||
@Caption(value = "Qty Satu Kemasan")
|
@Caption(value = "Qty Satu Kemasan")
|
||||||
@NotNull(message = "Qty Satu Kemasan tidak boleh kosong")
|
|
||||||
@Column(name = "QtySatuKemasan", nullable = false)
|
@Column(name = "QtySatuKemasan", nullable = false)
|
||||||
private short qtySatuKemasan;
|
private short qtySatuKemasan;
|
||||||
|
|
||||||
@Caption(value = "Qty Terkecil")
|
@Caption(value = "Qty Terkecil")
|
||||||
@NotNull(message = "Qty Terkecil tidak boleh kosong")
|
|
||||||
@Column(name = "QtyTerkecil", nullable = false)
|
@Column(name = "QtyTerkecil", nullable = false)
|
||||||
private Double qtyTerkecil;
|
private Double qtyTerkecil;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user