package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

import static javax.persistence.FetchType.LAZY;
import static javax.persistence.GenerationType.SEQUENCE;

@Getter
@Setter
@Entity
@Table(name = "diagnosaonkologitopologi_m")
public class DiagnosaOnkologiTopologi extends BaseMaster {

	@ManyToOne(fetch = 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")
	private Integer qDiagnosaOnkologiTopologi;

	@Column(name = "kdDiagnosaOnkologiTopologi")
	private String kdDiagnosaOnkologiTopologi;

	@Column(name = "level")
	private String level;

	@Column(name = "namaDiagnosaOnkologiTopologi")
	private String namaDiagnosaOnkologiTopologi;

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

}