156 lines
3.8 KiB
Java
156 lines
3.8 KiB
Java
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 JenisWaktu
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Entity // @Audited
|
|
@Table(name = "JenisWaktu_M")
|
|
public class JenisWaktu extends BaseMaster {
|
|
// @NotNull(message="Jam Akhir tidak boleh kosong")
|
|
@Column(name = "JamAkhir", nullable = false)
|
|
@Caption(value = "Jam Akhir")
|
|
private Byte jamAkhir;
|
|
|
|
public void setJamAkhir(Byte jamAkhir) {
|
|
this.jamAkhir = jamAkhir;
|
|
}
|
|
|
|
public Byte getJamAkhir() {
|
|
return this.jamAkhir;
|
|
}
|
|
|
|
// @NotNull(message="Jam Awal tidak boleh kosong")
|
|
@Column(name = "JamAwal", nullable = false)
|
|
@Caption(value = "Jam Awal")
|
|
private Byte jamAwal;
|
|
|
|
public void setJamAwal(Byte jamAwal) {
|
|
this.jamAwal = jamAwal;
|
|
}
|
|
|
|
public Byte getJamAwal() {
|
|
return this.jamAwal;
|
|
}
|
|
|
|
@NotNull(message = "Jenis Waktu tidak boleh kosong")
|
|
@Column(name = "JenisWaktu", nullable = false, length = 10)
|
|
@Caption(value = "Jenis Waktu")
|
|
private String jenisWaktu;
|
|
|
|
public void setJenisWaktu(String jenisWaktu) {
|
|
this.jenisWaktu = jenisWaktu;
|
|
}
|
|
|
|
public String getJenisWaktu() {
|
|
return this.jenisWaktu;
|
|
}
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectDepartemenFk")
|
|
|
|
@Caption(value = "Object Departemen")
|
|
private Departemen departemen;
|
|
|
|
public void setDepartemen(Departemen departemen) {
|
|
this.departemen = departemen;
|
|
}
|
|
|
|
public Departemen getDepartemen() {
|
|
return this.departemen;
|
|
}
|
|
|
|
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
|
private Integer departemenId;
|
|
|
|
@NotNull(message = "Kd Jenis Waktu tidak boleh kosong")
|
|
@Column(name = "KdJenisWaktu", nullable = false)
|
|
@Caption(value = "Kode Jenis Waktu")
|
|
private Byte kdJenisWaktu;
|
|
|
|
public void setKdJenisWaktu(Byte kdJenisWaktu) {
|
|
this.kdJenisWaktu = kdJenisWaktu;
|
|
}
|
|
|
|
public Byte getKdJenisWaktu() {
|
|
return this.kdJenisWaktu;
|
|
}
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectKelompokProdukFk")
|
|
|
|
@Caption(value = "Object Kelompok Produk")
|
|
private KelompokProduk kelompokProduk;
|
|
|
|
public void setKelompokProduk(KelompokProduk kelompokProduk) {
|
|
this.kelompokProduk = kelompokProduk;
|
|
}
|
|
|
|
public KelompokProduk getKelompokProduk() {
|
|
return this.kelompokProduk;
|
|
}
|
|
|
|
@Column(name = "ObjectKelompokProdukFk", insertable = false, updatable = false)
|
|
private Integer kelompokProdukId;
|
|
|
|
// @NotNull(message="No Urut tidak boleh kosong")
|
|
@Column(name = "NoUrut", nullable = false)
|
|
@Caption(value = "No Urut")
|
|
private Byte noUrut;
|
|
|
|
public void setNoUrut(Byte noUrut) {
|
|
this.noUrut = noUrut;
|
|
}
|
|
|
|
public Byte getNoUrut() {
|
|
return this.noUrut;
|
|
}
|
|
|
|
// @NotNull(message="QJenis Waktu tidak boleh kosong")
|
|
@Column(name = "QJenisWaktu", nullable = false)
|
|
@Caption(value = "QJenis Waktu")
|
|
private Byte qJenisWaktu;
|
|
|
|
public void setqJenisWaktu(Byte qJenisWaktu) {
|
|
this.qJenisWaktu = qJenisWaktu;
|
|
}
|
|
|
|
public Byte getqJenisWaktu() {
|
|
return this.qJenisWaktu;
|
|
}
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jeniswaktu_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.jeniswaktu_m_id_seq", sequenceName = "public.jeniswaktu_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
public Integer getId() {
|
|
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
} |