package com.jasamedika.medifirst2000.entities;

import javax.persistence.*;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
@Table(name = "MapPegawaiToModulAplikasi_S")
public class MapPegawaiToModulAplikasi extends BaseMaster {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5956570834138264263L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.mappegawaitomodulaplikasi_m_id_seq")
	@javax.persistence.SequenceGenerator(
			name = "public.mappegawaitomodulaplikasi_m_id_seq", 
			sequenceName = "public.mappegawaitomodulaplikasi_m_id_seq", 
			allocationSize = 1
	)
	@Column(name = "id")
	protected Integer id;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectModulAplikasiFk")
	@Caption(value = "Object Modul Aplikasi")
	private ModulAplikasi modulAplikasi;

	@Column(name = "ObjectModulAplikasiFk", insertable = false, updatable = false)
	private Integer modulAplikasiId;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectPegawaiFk")
	@Caption(value = "Object Pegawai")
	private Pegawai pegawai;

	@Column(name = "ObjectPegawaiFk", insertable = false, updatable = false)
	private Integer pegawaiId;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public ModulAplikasi getModulAplikasi() {
		return modulAplikasi;
	}

	public void setModulAplikasi(ModulAplikasi modulAplikasi) {
		this.modulAplikasi = modulAplikasi;
	}

	public Integer getModulAplikasiId() {
		return modulAplikasiId;
	}

	public void setModulAplikasiId(Integer modulAplikasiId) {
		this.modulAplikasiId = modulAplikasiId;
	}

	public Pegawai getPegawai() {
		return pegawai;
	}

	public void setPegawai(Pegawai pegawai) {
		this.pegawai = pegawai;
	}

	public Integer getPegawaiId() {
		return pegawaiId;
	}

	public void setPegawaiId(Integer pegawaiId) {
		this.pegawaiId = pegawaiId;
	}



}