package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

/**
 *  class DataRekapPembatalanResep
 * 
 * @author Generator
 */
@Entity //@Audited
@Table(name = "RM_DataRekapPembatalanResep_M")
public class DataRekapPembatalanResep extends BaseMaster {
	@NotNull(message="NoResep tidak boleh kosong")
	@Column(name = "NoResep", nullable = false, length = 100)
	@Caption(value = "NoResep")
	private String noResep;
	public void setNoResep(String noResep)
	{
		this.noResep = noResep;
	}
	public String getNoResep()
	{
		 return this.noResep;
	}


	@NotNull(message="PasienRs tidak boleh kosong")
	@Column(name = "PasienRs", nullable = false, length = 100)
	@Caption(value = "PasienRs")
	private String pasienRs;
	public void setPasienRs(String pasienRs)
	{
		this.pasienRs = pasienRs;
	}
	public String getPasienRs()
	{
		 return this.pasienRs;
	}


	@NotNull(message="NamaPasien tidak boleh kosong")
	@Column(name = "NamaPasien", nullable = false, length = 100)
	@Caption(value = "NamaPasien")
	private String namaPasien;
	public void setNamaPasien(String namaPasien)
	{
		this.namaPasien = namaPasien;
	}
	public String getNamaPasien()
	{
		 return this.namaPasien;
	}


	@NotNull(message="NamaDokter tidak boleh kosong")
	@Column(name = "NamaDokter", nullable = false, length = 100)
	@Caption(value = "NamaDokter")
	private String namaDokter;
	public void setNamaDokter(String namaDokter)
	{
		this.namaDokter = namaDokter;
	}
	public String getNamaDokter()
	{
		 return this.namaDokter;
	}


	@NotNull(message="JmlBarang tidak boleh kosong")
	@Column(name = "JmlBarang", nullable = false, length = 100)
	@Caption(value = "JmlBarang")
	private String jmlBarang;
	public void setJmlBarang(String jmlBarang)
	{
		this.jmlBarang = jmlBarang;
	}
	public String getJmlBarang()
	{
		 return this.jmlBarang;
	}


	@NotNull(message="Subtotal tidak boleh kosong")
	@Column(name = "Subtotal", nullable = false, length = 100)
	@Caption(value = "Subtotal")
	private String subtotal;
	public void setSubtotal(String subtotal)
	{
		this.subtotal = subtotal;
	}
	public String getSubtotal()
	{
		 return this.subtotal;
	}


	@NotNull(message="Diskon tidak boleh kosong")
	@Column(name = "Diskon", nullable = false, length = 100)
	@Caption(value = "Diskon")
	private String diskon;
	public void setDiskon(String diskon)
	{
		this.diskon = diskon;
	}
	public String getDiskon()
	{
		 return this.diskon;
	}


	@NotNull(message="Pembulatan tidak boleh kosong")
	@Column(name = "Pembulatan", nullable = false, length = 100)
	@Caption(value = "Pembulatan")
	private String pembulatan;
	public void setPembulatan(String pembulatan)
	{
		this.pembulatan = pembulatan;
	}
	public String getPembulatan()
	{
		 return this.pembulatan;
	}


	@NotNull(message="Totalnya tidak boleh kosong")
	@Column(name = "Totalnya", nullable = false, length = 100)
	@Caption(value = "Totalnya")
	private String totalnya;
	public void setTotalnya(String totalnya)
	{
		this.totalnya = totalnya;
	}
	public String getTotalnya()
	{
		 return this.totalnya;
	}


	@NotNull(message="Jasa tidak boleh kosong")
	@Column(name = "Jasa", nullable = false, length = 100)
	@Caption(value = "Jasa")
	private String jasa;
	public void setJasa(String jasa)
	{
		this.jasa = jasa;
	}
	public String getJasa()
	{
		 return this.jasa;
	}


	@NotNull(message="Embalace tidak boleh kosong")
	@Column(name = "Embalace", nullable = false, length = 100)
	@Caption(value = "Embalace")
	private String embalace;
	public void setEmbalace(String embalace)
	{
		this.embalace = embalace;
	}
	public String getEmbalace()
	{
		 return this.embalace;
	}


	@NotNull(message="Ppn tidak boleh kosong")
	@Column(name = "Ppn", nullable = false, length = 100)
	@Caption(value = "Ppn")
	private String ppn;
	public void setPpn(String ppn)
	{
		this.ppn = ppn;
	}
	public String getPpn()
	{
		 return this.ppn;
	}


	@NotNull(message="Total tidak boleh kosong")
	@Column(name = "Total", nullable = false, length = 100)
	@Caption(value = "Total")
	private String total;
	public void setTotal(String total)
	{
		this.total = total;
	}
	public String getTotal()
	{
		 return this.total;
	}


	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.RM_DataRekapPembatalanResep_M")
	@javax.persistence.SequenceGenerator(name = "public.RM_DataRekapPembatalanResep_M", sequenceName = "public.RM_DataRekapPembatalanResep_M", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}