package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@Entity
@Table(name = "CssdMappingCaraSterilisasi_t")
public class CssdMappingCaraSterilisasi extends BaseTransaction {

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "NoStrukFk")
	@NotNull(message = "No Struk Harus Diisi")
	private StrukPelayanan strukPelayanan;

	@Column(name = "NoStrukFk", insertable = false, updatable = false, nullable = false)
	private String strukPelayananId;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ObjectProsesSterilisasiFk")
	@NotNull(message = "Cssd Proses Sterilisasi")
	private CssdCaraSterilisasi cssdCaraSterilisasi;

	@Column(name = "ObjectProsesSterilisasiFk", insertable = false, updatable = false, nullable = false)
	private Integer cssdProsesSterilisasiId;

}