package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "TahapanRekrutmenTest_M")
public class TahapanRekrutmenTest extends BaseMaster{
	@Column(name = "noUrut", nullable = false, length = 100)
	@Caption(value = "noUrut")
	private Integer noUrut;

	@ManyToOne
	@JoinColumn(name = "produkrsFk")
	@Caption(value = "produkrsFk")	
	private Produk produkRs; //produk rekrutmen seleksi
	
	@Column(name = "produkrsFk", insertable = false, updatable = false,nullable = false)	
	private Integer produkRsId;

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

	public Integer getId() {

		return id;
	}

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

	public Integer getNoUrut() {
		return noUrut;
	}

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

	public Produk getProdukRs() {
		return produkRs;
	}

	public void setProdukRs(Produk produkRs) {
		this.produkRs = produkRs;
	}

	public Integer getProdukRsId() {
		return produkRsId;
	}

	public void setProdukRsId(Integer produkRsId) {
		this.produkRsId = produkRsId;
	}
	
}
