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

	@NotNull(message = "Kd Model Pelayanan tidak boleh kosong")
	@Column(name = "KdModelPelayanan", nullable = false)
	@Caption(value = "Kode Model Pelayanan")
	private Byte kdModelPelayanan;

	@NotNull(message = "Model Pelayanan tidak boleh kosong")
	@Column(name = "ModelPelayanan", nullable = false, length = 15)
	@Caption(value = "Model Pelayanan")
	private String modelPelayanan;

	@NotNull(message = "QModel Pelayanan tidak boleh kosong")
	@Column(name = "QModelPelayanan", nullable = false)
	@Caption(value = "QModel Pelayanan")
	private Byte qModelPelayanan;

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

}