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

	@NotNull(message = "Kd Metodologi Bayi Tabung tidak boleh kosong")
	@Column(name = "KdMetodologiBayiTabung", nullable = false)
	@Caption(value = "Kode Metodologi Bayi Tabung")
	private Byte kdMetodologiBayiTabung;

	@NotNull(message = "Metodologi Bayi Tabung tidak boleh kosong")
	@Column(name = "MetodologiBayiTabung", nullable = false, length = 75)
	@Caption(value = "Metodologi Bayi Tabung")
	private String metodologiBayiTabung;

	@NotNull(message = "QMetodologi Bayi Tabung tidak boleh kosong")
	@Column(name = "QMetodologiBayiTabung", nullable = false)
	@Caption(value = "QMetodologi Bayi Tabung")
	private Byte qMetodologiBayiTabung;

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

}