157 lines
3.5 KiB
Java
157 lines
3.5 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
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 = "KontrakKinerja_M")
|
|
public class KontrakKinerja extends BaseMaster {
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectUnitKerjaFk")
|
|
@NotNull(message = "Unit Kerja tidak boleh kosong")
|
|
@Caption(value = "Unit Kerja")
|
|
private Departemen unitKerja;
|
|
|
|
@Column(name = "ObjectUnitKerjaFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer unitKerjaId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectKamusIndikatorFk")
|
|
@NotNull(message = "Kamus Indikator tidak boleh kosong")
|
|
@Caption(value = "Kamus Indikator")
|
|
private KamusIndikator kamusIndikator;
|
|
|
|
@Column(name = "ObjectKamusIndikatorFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer kamusIndikatorId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "peranFk")
|
|
@NotNull(message = "Peran tidak boleh kosong")
|
|
@Caption(value = "Peran")
|
|
private Peran peran;
|
|
|
|
@Column(name = "peranFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer peranId;
|
|
|
|
@Column(name = "Tahun", nullable = true)
|
|
@Caption(value = "Tahun")
|
|
private Integer tahun;
|
|
|
|
@Column(name = "pencapaian", nullable = true)
|
|
@Caption(value = "Pencapaian")
|
|
private String pencapaian;
|
|
|
|
@Column(name = "bobot", nullable = true)
|
|
@Caption(value = "bobot")
|
|
private Integer bobot;
|
|
|
|
@Column(name = "program", nullable = true)
|
|
@Caption(value = "program")
|
|
private String program;
|
|
|
|
public Departemen getUnitKerja() {
|
|
return unitKerja;
|
|
}
|
|
|
|
public void setUnitKerja(Departemen unitKerja) {
|
|
this.unitKerja = unitKerja;
|
|
}
|
|
|
|
public Integer getUnitKerjaId() {
|
|
return unitKerjaId;
|
|
}
|
|
|
|
public void setUnitKerjaId(Integer unitKerjaId) {
|
|
this.unitKerjaId = unitKerjaId;
|
|
}
|
|
|
|
public Peran getPeran() {
|
|
return peran;
|
|
}
|
|
|
|
public void setPeran(Peran peran) {
|
|
this.peran = peran;
|
|
}
|
|
|
|
public Integer getPeranId() {
|
|
return peranId;
|
|
}
|
|
|
|
public void setPeranId(Integer peranId) {
|
|
this.peranId = peranId;
|
|
}
|
|
|
|
public Integer getTahun() {
|
|
return tahun;
|
|
}
|
|
|
|
public void setTahun(Integer tahun) {
|
|
this.tahun = tahun;
|
|
}
|
|
|
|
public String getPencapaian() {
|
|
return pencapaian;
|
|
}
|
|
|
|
public void setPencapaian(String pencapaian) {
|
|
this.pencapaian = pencapaian;
|
|
}
|
|
|
|
public KamusIndikator getKamusIndikator() {
|
|
return kamusIndikator;
|
|
}
|
|
|
|
public void setKamusIndikator(KamusIndikator kamusIndikator) {
|
|
this.kamusIndikator = kamusIndikator;
|
|
}
|
|
|
|
public Integer getKamusIndikatorId() {
|
|
return kamusIndikatorId;
|
|
}
|
|
|
|
public void setKamusIndikatorId(Integer kamusIndikatorId) {
|
|
this.kamusIndikatorId = kamusIndikatorId;
|
|
}
|
|
|
|
public String getProgram() {
|
|
return program;
|
|
}
|
|
|
|
public void setProgram(String program) {
|
|
this.program = program;
|
|
}
|
|
|
|
public Integer getBobot() {
|
|
return bobot;
|
|
}
|
|
|
|
public void setBobot(Integer bobot) {
|
|
this.bobot = bobot;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.kontrakkinerja_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.kontrakkinerja_m_id_seq", sequenceName = "public.kontrakkinerja_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |