package com.jasamedika.medifirst2000.entities; import com.jasamedika.medifirst2000.base.BaseMaster; import com.jasamedika.medifirst2000.helper.Caption; import lombok.Getter; import lombok.Setter; import javax.persistence.*; import javax.validation.constraints.NotNull; import static javax.persistence.GenerationType.SEQUENCE; /** * class DataEntryResep * * @author Generator */ @Getter @Setter @Entity @Table(name = "RM_DataEntryResep_M") public class DataEntryResep extends BaseMaster { @NotNull(message = "Qty tidak boleh kosong") @Column(name = "Qty", nullable = false, length = 100) @Caption(value = "Qty") private String qty; @NotNull(message = "JenisKelamin tidak boleh kosong") @Column(name = "JenisKelamin", nullable = false, length = 100) @Caption(value = "JenisKelamin") private String jenisKelamin; @NotNull(message = "Satuan tidak boleh kosong") @Column(name = "Satuan", nullable = false, length = 100) @Caption(value = "Satuan") private String satuan; @NotNull(message = "Harga tidak boleh kosong") @Column(name = "Harga", nullable = false, length = 100) @Caption(value = "Harga") private String harga; @NotNull(message = "Embalace tidak boleh kosong") @Column(name = "Embalace", nullable = false, length = 100) @Caption(value = "Embalace") private String embalace; @NotNull(message = "Diskon tidak boleh kosong") @Column(name = "Diskon", nullable = false, length = 100) @Caption(value = "Diskon") private String diskon; @NotNull(message = "Jasa tidak boleh kosong") @Column(name = "Jasa", nullable = false, length = 100) @Caption(value = "Jasa") private String jasa; @NotNull(message = "Subtotal tidak boleh kosong") @Column(name = "Subtotal", nullable = false, length = 100) @Caption(value = "Subtotal") private String subtotal; @NotNull(message = "Info tidak boleh kosong") @Column(name = "Info", nullable = false, length = 100) @Caption(value = "Info") private String info; @Id @GeneratedValue(strategy = SEQUENCE, generator = "public.RM_DataEntryResep_M") @SequenceGenerator(name = "public.RM_DataEntryResep_M", sequenceName = "public.RM_DataEntryResep_M", allocationSize = 1) @Column(name = "id") protected Integer id; }