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.*;

import static javax.persistence.FetchType.LAZY;

@Getter
@Setter
@Entity
@Table(name = "MapPengkajianKebutuhanDasar_T")
public class MapPengkajianKebutuhanDasar extends BaseTransaction {

	@ManyToOne(fetch = LAZY)
	@Caption(value = "PengkajianKebutuhanDasar")
	@JoinColumn(name = "ObjectPengkajianKebutuhanDasarFk")
	private PengkajianKebutuhanDasar pengkajianKebutuhanDasar;

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

	@Caption(value = "Kebutuhan Dasar")
	@Column(name = "Name", length = 50)
	private String name;

	@Caption(value = "Status")
	@Column(name = "Status", length = 50)
	private String status;

	@Caption(value = "Keterangan")
	@Column(name = "Keterangan", length = 100)
	private String keterangan;

}
