79 lines
2.0 KiB
Java
79 lines
2.0 KiB
Java
package com.jasamedika.medifirst2000.entities;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.FetchType;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.JoinColumn;
|
|
import javax.persistence.ManyToOne;
|
|
import javax.persistence.Table;
|
|
|
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
|
|
@Entity
|
|
@Table(name="MapGolonganPegawaiToKelas_M")
|
|
public class MapGolonganPegawaiToKelas extends BaseMaster{
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.mapgolonganpegawaitokelas_m_id_seq")
|
|
@javax.persistence.SequenceGenerator(name = "public.mapgolonganpegawaitokelas_m_id_seq", sequenceName = "public.mapgolonganpegawaitokelas_m_id_seq", allocationSize = 1)
|
|
@Column(name = "id")
|
|
protected Integer id;
|
|
|
|
@ManyToOne(fetch=FetchType.LAZY)
|
|
@JoinColumn(name="ObjectGolonganPegawaiFK")
|
|
private Golongan golonganPegawai;
|
|
|
|
@Column(name="ObjectGolonganPegawaiFK", nullable=true, insertable=false, updatable=false)
|
|
private Integer golonganPegawaiId;
|
|
|
|
@ManyToOne(fetch=FetchType.LAZY)
|
|
@JoinColumn(name="ObjectKelasFK")
|
|
private Kelas kelas;
|
|
|
|
@Column(name="ObjectKelasFK", nullable=true, insertable=false, updatable=false)
|
|
private Integer kelasId;
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Golongan getGolonganPegawai() {
|
|
return golonganPegawai;
|
|
}
|
|
|
|
public void setGolonganPegawai(Golongan golonganPegawai) {
|
|
this.golonganPegawai = golonganPegawai;
|
|
}
|
|
|
|
public Integer getGolonganPegawaiId() {
|
|
return golonganPegawaiId;
|
|
}
|
|
|
|
public void setGolonganPegawaiId(Integer golonganPegawaiId) {
|
|
this.golonganPegawaiId = golonganPegawaiId;
|
|
}
|
|
|
|
public Kelas getKelas() {
|
|
return kelas;
|
|
}
|
|
|
|
public void setKelas(Kelas kelas) {
|
|
this.kelas = kelas;
|
|
}
|
|
|
|
public Integer getKelasId() {
|
|
return kelasId;
|
|
}
|
|
|
|
public void setKelasId(Integer kelasId) {
|
|
this.kelasId = kelasId;
|
|
}
|
|
}
|