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

	@Caption(value = "Komponen Harga Detail R")
	private String namaKomponenHargaDetailR;

	@NotNull(message = "No Urut tidak boleh kosong")
	@Column(name = "NoUrut", nullable = false)
	@Caption(value = "No Urut")
	private Byte noUrut;

	@NotNull(message = "QKomponen Harga Detail R tidak boleh kosong")
	@Column(name = "QKomponenHargaDetailR", nullable = false)
	@Caption(value = "QKomponen Harga Detail R")
	private Byte qKomponenHargaDetailR;

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

}