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 static javax.persistence.FetchType.LAZY;

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

	@ManyToOne(fetch = LAZY)
	@Caption(value = "LkkIdentifikasiKejadian")
	@JoinColumn(name = "ObjectLkkIdentifikasiKejadianFk")
	private LkkIdentifikasiKejadian lkkIdentifikasiKejadian;

	@Column(name = "ObjectLkkIdentifikasiKejadianFk", insertable = false, updatable = false)
	private String lkkIdentifikasiKejadianId;

	@Caption(value = "Nama Saksi")
	@Column(name = "NamaSaksi", length = 100)
	private String namaSaksi;

	@Caption(value = "Pekerjaan")
	@Column(name = "Pekerjaan", length = 100)
	private String pekerjaan;

	@Caption(value = "No Kontak")
	@Column(name = "NoKontak", length = 50)
	private String noKontak;

}
