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;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "MapObjekModulToLoginUser_S")
public class MapObjekModulToLoginUser extends BaseMaster {
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.mapobjekmodultologinuser_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.mapobjekmodultologinuser_m_id_seq", sequenceName = "public.mapobjekmodultologinuser_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectLoginUserFk")
	@Caption(value = "Object Login User")
	private LoginUser loginUser;

	@Column(name = "ObjectLoginUserFk", insertable = false, updatable = false)
	private Integer loginUserId;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectObjekModulAplikasiFk")
	@Caption(value = "Object Objek Modul Aplikasi")
	private ObjekModulAplikasi objekModulAplikasi;

	@Column(name = "ObjectObjekModulAplikasiFk", insertable = false, updatable = false)
	private Integer objekModulAplikasiId;
	
	@Caption(value = "Simpan")
	@Column(name="simpan")
	private Boolean simpan;
	
	@Caption(value = "Hapus")
	@Column(name="hapus")
	private Boolean hapus;
	
	@Caption(value = "Edit")
	@Column(name="edit")
	private Boolean edit;
	
	@Caption(value = "Cetak")
	@Column(name="cetak")
	private Boolean cetak;

	public Integer getId() {
		return id;
	}

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

	public LoginUser getLoginUser() {
		return loginUser;
	}

	public void setLoginUser(LoginUser loginUser) {
		this.loginUser = loginUser;
	}

	public Integer getLoginUserId() {
		return loginUserId;
	}

	public void setLoginUserId(Integer loginUserId) {
		this.loginUserId = loginUserId;
	}

	public ObjekModulAplikasi getObjekModulAplikasi() {
		return objekModulAplikasi;
	}

	public void setObjekModulAplikasi(ObjekModulAplikasi objekModulAplikasi) {
		this.objekModulAplikasi = objekModulAplikasi;
	}

	public Integer getObjekModulAplikasiId() {
		return objekModulAplikasiId;
	}

	public void setObjekModulAplikasiId(Integer objekModulAplikasiId) {
		this.objekModulAplikasiId = objekModulAplikasiId;
	}

	public Boolean getSimpan() {
		return simpan;
	}

	public void setSimpan(Boolean simpan) {
		this.simpan = simpan;
	}

	public Boolean getHapus() {
		return hapus;
	}

	public void setHapus(Boolean hapus) {
		this.hapus = hapus;
	}

	public Boolean getEdit() {
		return edit;
	}

	public void setEdit(Boolean edit) {
		this.edit = edit;
	}

	public Boolean getCetak() {
		return cetak;
	}

	public void setCetak(Boolean cetak) {
		this.cetak = cetak;
	}
}
