56 lines
1.4 KiB
Java
56 lines
1.4 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseActive;
|
|
import com.jasamedika.medifirst2000.helper.Caption;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
|
|
import javax.persistence.*;
|
|
import java.util.Date;
|
|
import java.util.Set;
|
|
|
|
import static javax.persistence.CascadeType.ALL;
|
|
import static javax.persistence.FetchType.LAZY;
|
|
import static javax.persistence.TemporalType.DATE;
|
|
import static javax.persistence.TemporalType.TIMESTAMP;
|
|
|
|
/**
|
|
* @author salmanoe
|
|
* @version 1.0.0
|
|
* @since 25/04/2024
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "t_logbook_remun", schema = "remun")
|
|
public class LogbookRemun extends BaseActive {
|
|
|
|
@Id
|
|
@GeneratedValue(generator = "uuid")
|
|
@GenericGenerator(name = "uuid", strategy = "uuid")
|
|
@Column(name = "no_rec", columnDefinition = "CHAR(32)", unique = true)
|
|
protected String noRec;
|
|
|
|
@Column(name = "pegawai_id")
|
|
@Caption(value = "Id Pegawai")
|
|
private Integer pegawaiId;
|
|
|
|
@Column(name = "pegawai")
|
|
@Caption(value = "Pegawai")
|
|
private String pegawai;
|
|
|
|
@Column(name = "bulan")
|
|
@Caption(value = "Bulan")
|
|
@Temporal(DATE)
|
|
private Date bulan;
|
|
|
|
@Column(name = "tanggal_tarik_data")
|
|
@Caption(value = "Tanggal Tarik Data")
|
|
@Temporal(TIMESTAMP)
|
|
private Date tanggalTarikData;
|
|
|
|
@OneToMany(cascade = ALL, fetch = LAZY, mappedBy = "logbookRemun")
|
|
private Set<LogbookDokter> logbookDokter;
|
|
}
|