package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * class MapAngkaToBulan
 * 
 * @author Generator
 */
@Entity // @Audited
@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 = GenerationType.SEQUENCE, generator = "public.mapuraiantojabatan_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.mapuraiantojabatan_m_id_seq", sequenceName = "public.mapuraiantojabatan_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {

		return id;
	}

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