package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;

@Getter
@Setter
@Entity
@Table(name = "KomponenPenilaianDetail_t")
public class KomponenPenilaianDetail extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "ObjectperencanaanPulangFk")
	@Caption(value = "Object perencanaanPulang")
	private PerencanaanPulang perencanaanPulang;

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

	@ManyToOne
	@JoinColumn(name = "ObjectkomponenPenilaianFk")
	@Caption(value = "Object komponenPenilaian")
	private KomponenPenilaian komponenPenilaian;

	@Column(name = "ObjectkomponenPenilaianFk", insertable = false, updatable = false)
	private Integer komponenPenilaianId;

	@ManyToOne
	@JoinColumn(name = "ObjectstatusYaTidakFk")
	@Caption(value = "Object statusYaTidak")
	private StatusYaTidak statusYaTidak;

	@Column(name = "ObjectstatusYaTidakFk", insertable = false, updatable = false)
	private Integer statusYaTidakId;

	@Column(name = "keterangan", nullable = false)
	@Caption(value = "keterangan")
	private String keterangan;

}
