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

	@NotNull(message = "Asal Anggaran tidak boleh kosong")
	@Column(name = "AsalAnggaran", nullable = false, length = 50)
	@Caption(value = "Asal Anggaran")
	private String asalAnggaran;

	@Caption(value = "Kode Asal Anggaran")
	private Byte kdAsalAnggaran;

	@Column(name = "Keterangan", length = 100)
	@Caption(value = "Keterangan")
	private String keterangan;

	@Caption(value = "QAsal Anggaran")
	private Byte qAsalAnggaran;

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

}