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

	@NotNull(message = "Jenis Tarif tidak boleh kosong")
	@Column(name = "JenisTarif", nullable = false, length = 20)
	@Caption(value = "Jenis Tarif")
	private String jenisTarif;

	@NotNull(message = "Kd Jenis Tarif tidak boleh kosong")
	@Column(name = "KdJenisTarif", nullable = false)
	@Caption(value = "Kode Jenis Tarif")
	private Byte kdJenisTarif;

	@NotNull(message = "QJenis Tarif tidak boleh kosong")
	@Column(name = "QJenisTarif", nullable = false)
	@Caption(value = "QJenis Tarif")
	private Byte qJenisTarif;

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

}