package com.jasamedika.medifirst2000.entities;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import com.jasamedika.medifirst2000.entities.Pegawai;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseMaster;

import javax.validation.constraints.NotNull;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 * class CustomUraianKerja
 * 
 * @author Generator
 */
@Entity
@Table(name = "sdm_CustomUraianKerja_m")
public class CustomUraianKerja extends BaseMaster {
	@Column(name = "Bobot", nullable = false, length = 100)
	@Caption(value = "Bobot")
	private Integer bobot;

	public Integer getBobot() {
		return bobot;
	}

	public void setBobot(Integer bobot) {
		this.bobot = bobot;
	}

	@Column(name = "Targer", nullable = false, length = 100)
	@Caption(value = "Targer")
	private Integer targer;

	public Integer getTarger() {
		return targer;
	}

	public void setTarger(Integer targer) {
		this.targer = targer;
	}

	@Column(name = "Judul", nullable = false, length = 100)
	@Caption(value = "Judul")
	private String judul;

	@ManyToOne
	@JoinColumn(name = "PegawaiFk")
	@NotNull(message = "Pegawai Harus Diisi")
	@Caption(value = "Pegawai")
	private Pegawai pegawai;

	public Pegawai getPegawai() {
		return pegawai;
	}

	public void setPegawai(Pegawai pegawai) {
		this.pegawai = pegawai;
	}

	@Column(name = "PegawaiFk", insertable = false, updatable = false)
	private Integer pegawaiId;

	@Column(name = "Kelompok", nullable = false, length = 100)
	@Caption(value = "Kelompok")
	private String kelompok;

	public String getJudul() {
		return judul;
	}

	public void setJudul(String judul) {
		this.judul = judul;
	}

	public String getKelompok() {
		return kelompok;
	}

	public void setKelompok(String kelompok) {
		this.kelompok = kelompok;
	}

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

	public Integer getId() {
		return id;
	}

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

}