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 = "ItJadwalPerawatanTeknisi_T")
public class ItJadwalPerawatanTeknisi extends BaseTransaction {

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

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

	@ManyToOne(fetch = LAZY)
	@JoinColumn(name = "ObjectTeknisiFk")
	private Pegawai teknisi;

	@Column(name = "ObjectTeknisiFk", nullable = false, insertable = false, updatable = false)
	private Integer teknisiId;

}
