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.GenerationType.SEQUENCE;

/**
 * class MapAngkaToBulan
 * 
 * @author Generator
 */
@Getter
@Setter
@Entity
@Table(name = "MapUraianToJabatan_M")
public class MapUraianToJabatan extends BaseMaster {

	@ManyToOne
	@JoinColumn(name = "UraianTugas")
	@Caption(value = "Uraian Tugas")
	private UraianTugas uraianTugas;

	@Column(name = "UraianTugas", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String uraianTugasId;

	@ManyToOne
	@JoinColumn(name = "Jabatan")
	@Caption(value = "Jabatan")
	private Jabatan jabatan;

	@Column(name = "Jabatan", insertable = false, updatable = false)
	private Integer jabatanId;

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

}