121 lines
3.2 KiB
Java
121 lines
3.2 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
|
|
/**
|
|
* class SatuanKerja
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "SatuanKerja_M")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class SatuanKerja extends BaseMaster {
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectJenisSatuanKerjaFk")
|
|
@NotNull(message = "Kd Jenis Satuan Kerja tidak boleh kosong")
|
|
|
|
@Caption(value = "Object Jenis Satuan Kerja")
|
|
private JenisSatuanKerja jenisSatuanKerja;
|
|
|
|
public void setJenisSatuanKerja(JenisSatuanKerja jenisSatuanKerja) {
|
|
this.jenisSatuanKerja = jenisSatuanKerja;
|
|
}
|
|
|
|
public JenisSatuanKerja getJenisSatuanKerja() {
|
|
return this.jenisSatuanKerja;
|
|
}
|
|
|
|
@Column(name = "ObjectJenisSatuanKerjaFk", insertable = false, updatable = false)
|
|
private Integer jenisSatuanKerjaId;
|
|
|
|
@Column(name = "KdPimpinan", nullable = true, length = 5)
|
|
@Caption(value = "Kode Pimpinan")
|
|
private String kdPimpinan;
|
|
|
|
public void setKdPimpinan(String kdPimpinan) {
|
|
this.kdPimpinan = kdPimpinan;
|
|
}
|
|
|
|
public String getKdPimpinan() {
|
|
return this.kdPimpinan;
|
|
}
|
|
|
|
@NotNull(message = "Kd Satuan Kerja tidak boleh kosong")
|
|
@Column(name = "KdSatuanKerja", nullable = false)
|
|
@Caption(value = "Kode Satuan Kerja")
|
|
private Byte kdSatuanKerja;
|
|
|
|
public void setKdSatuanKerja(Byte kdSatuanKerja) {
|
|
this.kdSatuanKerja = kdSatuanKerja;
|
|
}
|
|
|
|
public Byte getKdSatuanKerja() {
|
|
return this.kdSatuanKerja;
|
|
}
|
|
|
|
@Column(name = "NoSatuanKerja", nullable = true, length = 50)
|
|
@Caption(value = "No Satuan Kerja")
|
|
private String noSatuanKerja;
|
|
|
|
public void setNoSatuanKerja(String noSatuanKerja) {
|
|
this.noSatuanKerja = noSatuanKerja;
|
|
}
|
|
|
|
public String getNoSatuanKerja() {
|
|
return this.noSatuanKerja;
|
|
}
|
|
|
|
@NotNull(message = "QSatuan Kerja tidak boleh kosong")
|
|
@Column(name = "QSatuanKerja", nullable = false)
|
|
@Caption(value = "QSatuan Kerja")
|
|
private Byte qSatuanKerja;
|
|
|
|
public void setqSatuanKerja(Byte qSatuanKerja) {
|
|
this.qSatuanKerja = qSatuanKerja;
|
|
}
|
|
|
|
public Byte getqSatuanKerja() {
|
|
return this.qSatuanKerja;
|
|
}
|
|
|
|
@NotNull(message = "Satuan Kerja tidak boleh kosong")
|
|
@Column(name = "SatuanKerja", nullable = false, length = 100)
|
|
@Caption(value = "Satuan Kerja")
|
|
private String satuanKerja;
|
|
|
|
public void setSatuanKerja(String satuanKerja) {
|
|
this.satuanKerja = satuanKerja;
|
|
}
|
|
|
|
public String getSatuanKerja() {
|
|
return this.satuanKerja;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.satuankerja_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.satuankerja_m_id_seq", sequenceName = "public.satuankerja_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |