55 lines
1.6 KiB
Java
55 lines
1.6 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 KasusPenyakit
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "KasusPenyakit_M")
|
|
public class KasusPenyakit extends BaseMaster {
|
|
|
|
@NotNull(message = "Kasus Penyakit tidak boleh kosong")
|
|
@Column(name = "KasusPenyakit", nullable = false, length = 30)
|
|
@Caption(value = "Kasus Penyakit")
|
|
private String kasusPenyakit;
|
|
|
|
@NotNull(message = "Kd Kasus Penyakit tidak boleh kosong")
|
|
@Column(name = "KdKasusPenyakit", nullable = false)
|
|
@Caption(value = "Kode Kasus Penyakit")
|
|
private Byte kdKasusPenyakit;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "ObjectPelayananProfileFk")
|
|
|
|
@Caption(value = "Object Pelayanan Profile")
|
|
private PelayananProfile pelayananProfile;
|
|
|
|
@Column(name = "ObjectPelayananProfileFk", insertable = false, updatable = false)
|
|
private Integer pelayananProfileId;
|
|
|
|
@NotNull(message = "QKasus Penyakit tidak boleh kosong")
|
|
@Column(name = "QKasusPenyakit", nullable = false)
|
|
@Caption(value = "QKasus Penyakit")
|
|
private Byte qKasusPenyakit;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.kasuspenyakit_m_id_seq")
|
|
@SequenceGenerator(name = "public.kasuspenyakit_m_id_seq", sequenceName = "public.kasuspenyakit_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |