66 lines
1.7 KiB
Java
66 lines
1.7 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 java.util.Date;
|
|
|
|
import static javax.persistence.GenerationType.SEQUENCE;
|
|
|
|
/**
|
|
* class MapAsKepIntervensiToProduk
|
|
*
|
|
* @author Generator
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@Entity
|
|
@Table(name = "MapJabatanToUraianTugas_M")
|
|
public class MapJabatanToUraianTugas extends BaseMaster {
|
|
|
|
@Column(name = "NoDokumen", length = 100)
|
|
@Caption(value = "NoDokumen")
|
|
private String noDokumen;
|
|
|
|
@Column(name = "NoRevisi", length = 100)
|
|
@Caption(value = "NoRevisi")
|
|
private String noRevisi;
|
|
|
|
@Column(name = "TglTerbit", length = 100)
|
|
@Caption(value = "TglTerbit")
|
|
private Date tglTerbit;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectPegawaiFk")
|
|
@Caption(value = "ObjectPegawaiFk")
|
|
private Pegawai pegawai;
|
|
|
|
@Column(name = "ObjectPegawaiFk", insertable = false, updatable = false)
|
|
private Integer pegawaiId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectJabatanFk")
|
|
@Caption(value = "ObjectJabatanFk")
|
|
private Jabatan jabatan;
|
|
|
|
@Column(name = "ObjectJabatanFk", insertable = false, updatable = false)
|
|
private Integer jabatanId;
|
|
|
|
@ManyToOne
|
|
@JoinColumn(name = "ObjectRuanganFk")
|
|
@Caption(value = "ObjectRuanganFk")
|
|
private Ruangan ruangan;
|
|
|
|
@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
|
|
private Integer ruanganId;
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = SEQUENCE, generator = "public.mapjabatantouraiantugas_m_id_seq")
|
|
@SequenceGenerator(name = "public.mapjabatantouraiantugas_m_id_seq", sequenceName = "public.mapjabatantouraiantugas_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
} |