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 = "MapObjekModulToDepartemen_S")
public class MapObjekModulToDepartemen extends BaseMaster {
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.mapobjekmodultodepartemen_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.mapobjekmodultodepartemen_m_id_seq", sequenceName = "public.mapobjekmodultodepartemen_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;
	
	@ManyToOne
	@JoinColumn(name = "ObjectDepartemenFk")
	@Caption(value = "Object Departemen")
	private Departemen departemen;

	@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
	private Integer departemenId;

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

	@Column(name = "ObjectObjekModulAplikasiFk", insertable = false, updatable = false)
	private Integer objekModulAplikasiId;

	public Integer getId() {
		return id;
	}

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

	public Departemen getDepartemen() {
		return departemen;
	}

	public void setDepartemen(Departemen departemen) {
		this.departemen = departemen;
	}

	public Integer getDepartemenId() {
		return departemenId;
	}

	public void setDepartemenId(Integer departemenId) {
		this.departemenId = departemenId;
	}

	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;
	}

}