package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class KomponenHargaDetailR
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "KomponenHargaDetailR_M")
public class KomponenHargaDetailR extends BaseMaster {
	/*
	 * @ManyToOne
	 * 
	 * @JoinColumn(name = "ObjectKomponenHargaDetailRFk")
	 * 
	 * @NotNull(message="Kd Komponen Harga Detail R tidak boleh kosong")
	 * 
	 * @Caption(value="Object Komponen Harga Detail R") private KomponenHarga
	 * komponenHargaDetailR;
	 * 
	 * public void setKomponenHargaDetailR(KomponenHarga komponenHargaDetailR) {
	 * this.komponenHargaDetailR = komponenHargaDetailR; }
	 * 
	 * 
	 * public KomponenHarga getKomponenHargaDetailR(){ return
	 * this.komponenHargaDetailR; }
	 * 
	 * @Column(name = "ObjectKomponenHargaDetailRFk",
	 * insertable=false,updatable=false) private Integer komponenHargaDetailRId;
	 */
	@Caption(value = "Komponen Harga Detail R")
	private String namaKomponenHargaDetailR;

	public String getNamaKomponenHargaDetailR() {
		return namaKomponenHargaDetailR;
	}

	public void setNamaKomponenHargaDetailR(String namaKomponenHargaDetailR) {
		this.namaKomponenHargaDetailR = namaKomponenHargaDetailR;
	}

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

	public void setNoUrut(Byte noUrut) {
		this.noUrut = noUrut;
	}

	public Byte getNoUrut() {
		return this.noUrut;
	}

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

	public void setqKomponenHargaDetailR(Byte qKomponenHargaDetailR) {
		this.qKomponenHargaDetailR = qKomponenHargaDetailR;
	}

	public Byte getqKomponenHargaDetailR() {
		return this.qKomponenHargaDetailR;
	}

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

	public Integer getId() {

		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}