78 lines
2.5 KiB
Java
78 lines
2.5 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import javax.persistence.*;
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import static javax.persistence.FetchType.LAZY;
|
|
import static javax.persistence.GenerationType.SEQUENCE;
|
|
|
|
/**
|
|
* class JenisPeriksaPenunjang
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "JenisPeriksaPenunjang_M")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class JenisPeriksaPenunjang extends BaseMaster {
|
|
|
|
@NotNull(message = "Jenis Periksa tidak boleh kosong")
|
|
@Column(name = "JenisPeriksa", nullable = false, length = 50)
|
|
@Caption(value = "Jenis Periksa")
|
|
private String jenisPeriksa;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "ObjectBahanSampleFk")
|
|
@Caption(value = "Object Bahan Sample")
|
|
private BahanSample bahanSample;
|
|
|
|
@Column(name = "ObjectBahanSampleFk", insertable = false, updatable = false)
|
|
private Integer bahanSampleId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectDepartemenFk")
|
|
@NotNull(message = "Kd Departemen tidak boleh kosong")
|
|
@Caption(value = "Object Departemen")
|
|
private Departemen departemen;
|
|
|
|
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
|
private Integer departemenId;
|
|
|
|
@NotNull(message = "Kd Jenis Periksa tidak boleh kosong")
|
|
@Column(name = "KdJenisPeriksa", nullable = false)
|
|
@Caption(value = "Kode Jenis Periksa")
|
|
private short kdJenisPeriksa;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectJenisPeriksaHeadFk")
|
|
@Caption(value = "Object Jenis Periksa Head")
|
|
private JenisPeriksaPenunjang jenisPeriksaHead;
|
|
|
|
@Column(name = "ObjectJenisPeriksaHeadFk", insertable = false, updatable = false, nullable = false)
|
|
private Integer jenisPeriksaHeadId;
|
|
|
|
@NotNull(message = "No Urut tidak boleh kosong")
|
|
@Column(name = "NoUrut", nullable = false)
|
|
@Caption(value = "No Urut")
|
|
private Byte noUrut;
|
|
|
|
@NotNull(message = "QJenis Periksa tidak boleh kosong")
|
|
@Column(name = "QJenisPeriksa", nullable = false)
|
|
@Caption(value = "QJenis Periksa")
|
|
private short qJenisPeriksa;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.jenisperiksapenunjang_m_id_seq")
|
|
@SequenceGenerator(name = "public.jenisperiksapenunjang_m_id_seq", sequenceName = "public.jenisperiksapenunjang_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |