package com.jasamedika.medifirst2000.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseTransaction;

@Entity
@Table(name = "MappingPetugasKendaraanDinas_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class MappingPegawaiKendaraanDinas extends BaseTransaction {

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectStrukOrderFk")
	private StrukOrder strukOrder;

	@Column(name = "ObjectStrukOrderFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String strukOrderId;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectPetugasFk")
	private Pegawai petugas;

	@Column(name = "ObjectPetugasFk", insertable = false, updatable = false, nullable = false)
	private Integer petugasId;

	public StrukOrder getStrukOrder() {
		return strukOrder;
	}

	public void setStrukOrder(StrukOrder strukOrder) {
		this.strukOrder = strukOrder;
	}

	public Pegawai getPetugas() {
		return petugas;
	}

	public void setPetugas(Pegawai petugas) {
		this.petugas = petugas;
	}

}
