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 DataRekapPembatalanResep
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@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;

	@NotNull(message = "PasienRs tidak boleh kosong")
	@Column(name = "PasienRs", nullable = false, length = 100)
	@Caption(value = "PasienRs")
	private String pasienRs;

	@NotNull(message = "NamaPasien tidak boleh kosong")
	@Column(name = "NamaPasien", nullable = false, length = 100)
	@Caption(value = "NamaPasien")
	private String namaPasien;

	@NotNull(message = "NamaDokter tidak boleh kosong")
	@Column(name = "NamaDokter", nullable = false, length = 100)
	@Caption(value = "NamaDokter")
	private String namaDokter;

	@NotNull(message = "JmlBarang tidak boleh kosong")
	@Column(name = "JmlBarang", nullable = false, length = 100)
	@Caption(value = "JmlBarang")
	private String jmlBarang;

	@NotNull(message = "Subtotal tidak boleh kosong")
	@Column(name = "Subtotal", nullable = false, length = 100)
	@Caption(value = "Subtotal")
	private String subtotal;

	@NotNull(message = "Diskon tidak boleh kosong")
	@Column(name = "Diskon", nullable = false, length = 100)
	@Caption(value = "Diskon")
	private String diskon;

	@NotNull(message = "Pembulatan tidak boleh kosong")
	@Column(name = "Pembulatan", nullable = false, length = 100)
	@Caption(value = "Pembulatan")
	private String pembulatan;

	@NotNull(message = "Totalnya tidak boleh kosong")
	@Column(name = "Totalnya", nullable = false, length = 100)
	@Caption(value = "Totalnya")
	private String totalnya;

	@NotNull(message = "Jasa tidak boleh kosong")
	@Column(name = "Jasa", nullable = false, length = 100)
	@Caption(value = "Jasa")
	private String jasa;

	@NotNull(message = "Embalace tidak boleh kosong")
	@Column(name = "Embalace", nullable = false, length = 100)
	@Caption(value = "Embalace")
	private String embalace;

	@NotNull(message = "Ppn tidak boleh kosong")
	@Column(name = "Ppn", nullable = false, length = 100)
	@Caption(value = "Ppn")
	private String ppn;

	@NotNull(message = "Total tidak boleh kosong")
	@Column(name = "Total", nullable = false, length = 100)
	@Caption(value = "Total")
	private String total;

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

}