55 lines
1.4 KiB
Java
55 lines
1.4 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
import com.fasterxml.jackson.annotation.JsonManagedReference;
|
|
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import javax.persistence.*;
|
|
import java.util.Date;
|
|
import java.util.HashSet;
|
|
import java.util.Set;
|
|
|
|
import static javax.persistence.CascadeType.ALL;
|
|
import static javax.persistence.FetchType.LAZY;
|
|
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "PenyusunanTRPNPB_T")
|
|
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
public class PenyusunanTRPNPB extends BaseTransaction {
|
|
|
|
@Column(name = "Tahun")
|
|
@Caption(value = "Tahun")
|
|
private Integer tahun;
|
|
|
|
@Column(name = "Prosentase")
|
|
@Caption(value = "Prosentase")
|
|
private Integer prosentase;
|
|
|
|
@Column(name = "PeriodeAwal")
|
|
@Caption(value = "Periode Awal")
|
|
private Date periodeAwal;
|
|
|
|
@Column(name = "PeriodeAkhir")
|
|
@Caption(value = "Periode Akhir")
|
|
private Date periodeAkhir;
|
|
|
|
@Column(name = "Status")
|
|
@Caption(value = "Status")
|
|
private String status;
|
|
|
|
@Column(name = "TglPenyusunan")
|
|
@Caption(value = "Tgl Penyusunan")
|
|
private Date tglPenyusunan;
|
|
|
|
@JsonManagedReference
|
|
@OneToMany(cascade = ALL, fetch = LAZY, mappedBy = "penyusunanTRPNPB")
|
|
@Caption(value = "penyusunanDetailTRPNPBSet")
|
|
private Set<PenyusunanDetailTRPNPB> penyusunanDetailTRPNPBSet = new HashSet<>();
|
|
|
|
}
|