61 lines
1.8 KiB
Java
61 lines
1.8 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
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 KelompokPasien
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "KelompokPasien_M")
|
|
public class KelompokPasien extends BaseMaster {
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "ObjectJenisTarifFk")
|
|
@NotNull(message = "Kd Jenis Tarif tidak boleh kosong")
|
|
|
|
@Caption(value = "Object Jenis Tarif")
|
|
private JenisTarif jenisTarif;
|
|
|
|
@Column(name = "ObjectJenisTarifFk", insertable = false, updatable = false)
|
|
private Integer jenisTarifId;
|
|
|
|
@NotNull(message = "Kd Kelompok Pasien tidak boleh kosong")
|
|
@Column(name = "KdKelompokPasien", nullable = false)
|
|
@Caption(value = "Kode Kelompok Pasien")
|
|
private Byte kdKelompokPasien;
|
|
|
|
@NotNull(message = "Kelompok Pasien tidak boleh kosong")
|
|
@Column(name = "KelompokPasien", nullable = false, length = 20)
|
|
@Caption(value = "Kelompok Pasien")
|
|
private String kelompokPasien;
|
|
|
|
@NotNull(message = "QKelompok Pasien tidak boleh kosong")
|
|
@Column(name = "QKelompokPasien", nullable = false)
|
|
@Caption(value = "QKelompok Pasien")
|
|
private Byte qKelompokPasien;
|
|
|
|
@NotNull(message = "Status Isi S J P tidak boleh kosong")
|
|
@Column(name = "StatusIsiSJP", nullable = false)
|
|
@Caption(value = "Status Isi S J P")
|
|
private Byte statusIsiSJP;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.kelompokpasien_m_id_seq")
|
|
@SequenceGenerator(name = "public.kelompokpasien_m_id_seq", sequenceName = "public.kelompokpasien_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |