package com.jasamedika.medifirst2000.entities;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import lombok.Getter;
import lombok.Setter;

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

import static javax.persistence.GenerationType.SEQUENCE;

@Getter
@Setter
@Entity
@Table(name = "IpsrsSertifikatKalibrasi_M")
public class IpsrsSertifikatKalibrasi extends BaseMaster {

	@Caption(value = "Kalibrasi Fk")
	@Column(name = "NoRecKalibrasi")
	private String noRecKalibrasi;

	@Caption(value = "Tanggal Kalibrasi")
	@Column(name = "TglKalibrasi")
	private Date tglKalibrasi;

	@Caption(value = "No Sertifikat")
	@Column(name = "NoSertifikat")
	private String noSertifikat;

	@Caption(value = "File Name")
	@Column(name = "FileName")
	private String fileName;

	@Caption(value = "File")
	@Column(name = "File")
	private byte[] file;

	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "public.ipsrssertifikatkalibrasi_m_id_seq")
	@SequenceGenerator(name = "public.ipsrssertifikatkalibrasi_m_id_seq", sequenceName = "public.ipsrssertifikatkalibrasi_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

}