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 = "UnitCostDetailJenis_M")
public class UnitCostDetailJenis extends  BaseMaster {
	
	@ManyToOne
	@JoinColumn(name = "ObjectUnitCostJenisFk")
	@Caption(value = "Object Unit Cost Jenis")
	private UnitCostJenis unitCostJenis;
	
	@Column(name = "ObjectUnitCostJenisFk", insertable = false, updatable = false, nullable = true)
	private Integer unitCostJenisId;
	
	@Column(name = "KdUnitCostDetailJenis", nullable = true)
	@Caption(value = "KdUnitCostDetailJenis")
	private String kdUnitCostDetailJenis;
	
	@Column(name = "NamaUnitCostDetailJenis", nullable = true)
	@Caption(value = "NamaUnitCostDetailJenis")
	private String namaUnitCostDetailJenis;

	public UnitCostJenis getUnitCostJenis() {
		return unitCostJenis;
	}

	public void setUnitCostJenis(UnitCostJenis unitCostJenis) {
		this.unitCostJenis = unitCostJenis;
	}

	public Integer getUnitCostJenisId() {
		return unitCostJenisId;
	}

	public void setUnitCostJenisId(Integer unitCostJenisId) {
		this.unitCostJenisId = unitCostJenisId;
	}

	public String getKdUnitCostDetailJenis() {
		return kdUnitCostDetailJenis;
	}

	public void setKdUnitCostDetailJenis(String kdUnitCostDetailJenis) {
		this.kdUnitCostDetailJenis = kdUnitCostDetailJenis;
	}

	public String getNamaUnitCostDetailJenis() {
		return namaUnitCostDetailJenis;
	}

	public void setNamaUnitCostDetailJenis(String namaUnitCostDetailJenis) {
		this.namaUnitCostDetailJenis = namaUnitCostDetailJenis;
	}
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.unitcostdetailjenis_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.unitcostdetailjenis_m_id_seq", sequenceName = "public.unitcostdetailjenis_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {
		return id;
	}

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

	
}
