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 org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name="ItJadwalPerawatanItem_T")
public class ItJadwalPerawatanItem extends BaseTransaction{
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="ObjectItJadwalPerawatanFk")
	private ItJadwalPerawatan itJadwalPerawatan;
	
	@Column(name="ObjectItJadwalPerawatanFk", insertable=false, updatable=false, nullable=false)
	private String itJadwalPerawatanId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectRegistrasiAsetFk")
	private RegistrasiAset registrasiAset;
	
	@Column(name = "ObjectRegistrasiAsetFk", columnDefinition = "CHAR(32)", nullable=true, insertable = false, updatable = false)
	private String registrasiAsetId;
	
	@Column(name="Kondisi", length=100)
	private String kondisi;

	public ItJadwalPerawatan getItJadwalPerawatan() {
		return itJadwalPerawatan;
	}

	public void setItJadwalPerawatan(ItJadwalPerawatan itJadwalPerawatan) {
		this.itJadwalPerawatan = itJadwalPerawatan;
	}

	public String getItJadwalPerawatanId() {
		return itJadwalPerawatanId;
	}

	public void setItJadwalPerawatanId(String itJadwalPerawatanId) {
		this.itJadwalPerawatanId = itJadwalPerawatanId;
	}

	public RegistrasiAset getRegistrasiAset() {
		return registrasiAset;
	}

	public void setRegistrasiAset(RegistrasiAset registrasiAset) {
		this.registrasiAset = registrasiAset;
	}

	public String getRegistrasiAsetId() {
		return registrasiAsetId;
	}

	public void setRegistrasiAsetId(String registrasiAsetId) {
		this.registrasiAsetId = registrasiAsetId;
	}

	public String getKondisi() {
		return kondisi;
	}

	public void setKondisi(String kondisi) {
		this.kondisi = kondisi;
	}
	
	

}
