package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
@Table(name = "K3ItemPeriksaGedung_M")
public class K3ItemPeriksaGedung extends BaseMaster {

	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "K3 Kelompok Lpj Gedung")
	@JoinColumn(name = "ObjectK3KelompokLpjGedungFK")
	private K3KelompokLpjGedung k3KelompokLpjGedung;

	@Column(name = "ObjectK3KelompokLpjGedungFK", nullable = false, insertable = false, updatable = false)
	private Integer k3KelompokLpjGedungId;

	@Caption(value = "Item Periksa")
	@Column(name = "ItemPeriksa", length = 100, nullable = false)
	private String itemPeriksa;

	public K3KelompokLpjGedung getK3KelompokLpjGedung() {
		return k3KelompokLpjGedung;
	}

	public void setK3KelompokLpjGedung(K3KelompokLpjGedung k3KelompokLpjGedung) {
		this.k3KelompokLpjGedung = k3KelompokLpjGedung;
	}

	public Integer getK3KelompokLpjGedungId() {
		return k3KelompokLpjGedungId;
	}

	public void setK3KelompokLpjGedungId(Integer k3KelompokLpjGedungId) {
		this.k3KelompokLpjGedungId = k3KelompokLpjGedungId;
	}

	public String getItemPeriksa() {
		return itemPeriksa;
	}

	public void setItemPeriksa(String itemPeriksa) {
		this.itemPeriksa = itemPeriksa;
	}

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

	public Integer getId() {

		return id;
	}

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