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 DataResepElektronik
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "RM_DataResepElektronik_M")
public class DataResepElektronik extends BaseMaster {

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

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

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

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

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

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

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

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

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

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

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

}