package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;

import static javax.persistence.FetchType.LAZY;

@Getter
@Setter
@Entity
@Table(name = "ItJadwalPerawatanItem_T")
public class ItJadwalPerawatanItem extends BaseTransaction {

	@ManyToOne(fetch = LAZY)
	@JoinColumn(name = "ObjectItJadwalPerawatanFk")
	private ItJadwalPerawatan itJadwalPerawatan;

	@Column(name = "ObjectItJadwalPerawatanFk", insertable = false, updatable = false, nullable = false)
	private String itJadwalPerawatanId;

	@ManyToOne(fetch = LAZY)
	@JoinColumn(name = "ObjectRegistrasiAsetFk")
	private RegistrasiAset registrasiAset;

	@Column(name = "ObjectRegistrasiAsetFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
	private String registrasiAsetId;

	@Column(name = "Kondisi", length = 100)
	private String kondisi;

}
