package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@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")
	@Type(type = "org.hibernate.type.BinaryType")
	private byte[] file;

	public String getNoRecKalibrasi() {
		return noRecKalibrasi;
	}

	public void setNoRecKalibrasi(String noRecKalibrasi) {
		this.noRecKalibrasi = noRecKalibrasi;
	}

	public Date getTglKalibrasi() {
		return tglKalibrasi;
	}

	public void setTglKalibrasi(Date tglKalibrasi) {
		this.tglKalibrasi = tglKalibrasi;
	}

	public String getNoSertifikat() {
		return noSertifikat;
	}

	public void setNoSertifikat(String noSertifikat) {
		this.noSertifikat = noSertifikat;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public byte[] getFile() {
		return file;
	}

	public void setFile(byte[] file) {
		this.file = file;
	}

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

	public Integer getId() {

		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}