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 = "diagnosaonkologitopologi_m")
public class DiagnosaOnkologiTopologi extends BaseMaster {
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectKategoryDiagnosaFk")
	@Caption(value = "Object Kategory Diagnosa")
	private KategoryDiagnosa kategoryDiagnosa;

	@Column(name = "ObjectKategoryDiagnosaFk", insertable = false, updatable = false)
	private Integer idKategoryDiagnosa;

	@Column(name = "qdiagnosaonkologitopologi", nullable = true)
	private Integer qDiagnosaOnkologiTopologi;

	@Column(name = "kdDiagnosaOnkologiTopologi", nullable = true)
	private String kdDiagnosaOnkologiTopologi;

	@Column(name = "level", nullable = true)
	private String level;

	@Column(name = "namaDiagnosaOnkologiTopologi", nullable = true)
	private String namaDiagnosaOnkologiTopologi;

	public KategoryDiagnosa getKategoryDiagnosa() {
		return kategoryDiagnosa;
	}

	public void setKategoryDiagnosa(KategoryDiagnosa kategoryDiagnosa) {
		this.kategoryDiagnosa = kategoryDiagnosa;
	}

	public Integer getIdKategoryDiagnosa() {
		return idKategoryDiagnosa;
	}

	public void setIdKategoryDiagnosa(Integer idKategoryDiagnosa) {
		this.idKategoryDiagnosa = idKategoryDiagnosa;
	}

	public Integer getqDiagnosaOnkologiTopologi() {
		return qDiagnosaOnkologiTopologi;
	}

	public void setqDiagnosaOnkologiTopologi(Integer qDiagnosaOnkologiTopologi) {
		this.qDiagnosaOnkologiTopologi = qDiagnosaOnkologiTopologi;
	}

	public String getKdDiagnosaOnkologiTopologi() {
		return kdDiagnosaOnkologiTopologi;
	}

	public void setKdDiagnosaOnkologiTopologi(String kdDiagnosaOnkologiTopologi) {
		this.kdDiagnosaOnkologiTopologi = kdDiagnosaOnkologiTopologi;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getNamaDiagnosaOnkologiTopologi() {
		return namaDiagnosaOnkologiTopologi;
	}

	public void setNamaDiagnosaOnkologiTopologi(String namaDiagnosaOnkologiTopologi) {
		this.namaDiagnosaOnkologiTopologi = namaDiagnosaOnkologiTopologi;
	}

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

	public Integer getId() {

		return id;
	}

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