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

	@ManyToOne
	@JoinColumn(name = "ObjectkehamilanSekarangFk")
	@Caption(value = "Object kehamilanSekarang")
	private KehamilanSekarang kehamilanSekarang;

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

	@ManyToOne
	@JoinColumn(name = "ObjectkelainanKehamilanFk")
	@Caption(value = "Object kelainanKehamilan")
	private KelainanKehamilan kelainanKehamilan;

	@Column(name = "ObjectkelainanKehamilanFk", insertable = false, updatable = false, nullable = false)
	private Integer kelainanKehamilanId;

	@Column(name = "isNilai", length = 100)
	@Caption(value = "isNilai")
	private Boolean isNilai;

}
