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

	private static final long serialVersionUID = 1L;

	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "CekListGedungBangunanHeader")
	@JoinColumn(name = "ObjectCekListGedungBangunanHeaderFk")
	private CekListGedungBangunanHeader cekListGedungBangunanHeader;

	@Column(name = "ObjectCekListGedungBangunanHeaderFk", insertable = false, updatable = false, nullable = false)
	private String cekListGedungBangunanHeaderId;

	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "CekListGedungBangunan")
	@JoinColumn(name = "ObjectCekListGedungBangunanFk")
	private CekListGedungBangunan cekListGedungBangunan;

	@Column(name = "ObjectCekListGedungBangunanFk", insertable = false, updatable = false, nullable = false)
	private Integer cekListGedungBangunanId;

	@Column(name = "kondisi")
	private Integer kondisi;

	@Column(name = "keterangan")
	private String keterangan;

}
