59 lines
1.5 KiB
Java
59 lines
1.5 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
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;
|
|
|
|
/**
|
|
* class PenangananKasus
|
|
*
|
|
* @author Lukman Hakim
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "PenangananKasus_T")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class PenangananKasus extends BaseTransaction {
|
|
|
|
@NotNull(message = "No Cm Tidak Boleh Kosong")
|
|
@Column(name = "NoCm", nullable = false)
|
|
@Caption(value = "No CM")
|
|
private String noCm;
|
|
|
|
@NotNull(message = "No Kasus Tidak Boleh Kosong")
|
|
@Column(name = "NoKasus", nullable = false)
|
|
@Caption(value = "No Kasus")
|
|
private String noKasus;
|
|
|
|
@ManyToOne(fetch = LAZY)
|
|
@JoinColumn(name = "PegawaiFk")
|
|
private Pegawai pegawai;
|
|
|
|
@Column(name = "PegawaiFk", insertable = false, updatable = false)
|
|
private Integer PegawaiFk;
|
|
|
|
@Column(name = "Kegiatan", nullable = false)
|
|
@Caption(value = "Kegiatan")
|
|
private String kegiatan;
|
|
|
|
@Column(name = "Hasil", nullable = false)
|
|
@Caption(value = "Hasil")
|
|
private String hasil;
|
|
|
|
@Column(name = "Kesimpulan", nullable = false)
|
|
@Caption(value = "Kesimpulan")
|
|
private String kesimpulan;
|
|
|
|
@Column(name = "Saran", nullable = false)
|
|
@Caption(value = "saran")
|
|
private String saran;
|
|
|
|
} |