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

	@NotNull(message = "Kd Keadaan Tali Pusat tidak boleh kosong")
	@Column(name = "KdKeadaanTaliPusat", nullable = false)
	@Caption(value = "Kode Keadaan Tali Pusat")
	private Byte kdKeadaanTaliPusat;

	@NotNull(message = "Keadaan Tali Pusat tidak boleh kosong")
	@Column(name = "KeadaanTaliPusat", nullable = false, length = 30)
	@Caption(value = "Keadaan Tali Pusat")
	private String keadaanTaliPusat;

	@NotNull(message = "QKeadaan Tali Pusat tidak boleh kosong")
	@Column(name = "QKeadaanTaliPusat", nullable = false)
	@Caption(value = "QKeadaan Tali Pusat")
	private Byte qKeadaanTaliPusat;

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

}