package com.jasamedika.medifirst2000.entities;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "CekListGedungBangunanHeader_T")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class CekListGedungBangunanHeader extends BaseTransaction {

	private static final long serialVersionUID = 8824016471372188837L;

	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "StrukOrder")
	@JoinColumn(name = "ObjectStrukOrderFk")
	private StrukOrder strukOrder;

	@Column(name = "ObjectStrukOrderFk", insertable = false, updatable = false)
	private String strukOrderId;

	@ManyToOne(fetch = FetchType.LAZY)
	@Caption(value = "OrderPelayanan")
	@JoinColumn(name = "ObjectOrderPelayananFk")
	private OrderPelayanan orderPelayanan;

	@Column(name = "ObjectOrderPelayananFk", insertable = false, updatable = false)
	private String orderPelayananId;

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

	@Column(name = "tanggal")
	private Date tanggal;

}
