package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class KeadaanTaliPusat
 * 
 * @author Generator
 */
@Entity // @Audited
@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;

	public void setKdKeadaanTaliPusat(Byte kdKeadaanTaliPusat) {
		this.kdKeadaanTaliPusat = kdKeadaanTaliPusat;
	}

	public Byte getKdKeadaanTaliPusat() {
		return this.kdKeadaanTaliPusat;
	}

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

	public void setKeadaanTaliPusat(String keadaanTaliPusat) {
		this.keadaanTaliPusat = keadaanTaliPusat;
	}

	public String getKeadaanTaliPusat() {
		return this.keadaanTaliPusat;
	}

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

	public void setqKeadaanTaliPusat(Byte qKeadaanTaliPusat) {
		this.qKeadaanTaliPusat = qKeadaanTaliPusat;
	}

	public Byte getqKeadaanTaliPusat() {
		return this.qKeadaanTaliPusat;
	}

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

	public Integer getId() {

		return id;
	}

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