package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import com.fasterxml.jackson.annotation.JsonBackReference;
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 = "PemantauanKinerjaPihakKetiga_M")
public class PemantauanKinerjaPihakKetiga extends BaseMaster {

	@Caption(value = "Tanggal")
	@Column(name = "Tanggal")
	private Date tanggal;

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

	@Caption(value = "Nama Perusahaan")
	@Column(name = "NamaPerusahaan", length = 100)
	private String namaPerusahaan;

	@Caption(value = "Analisa Tindak Lanjut")
	@Column(name = "AnalisaTindakLanjut")
	private String analisaTindakLanjut;

	@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 Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public String getJenisPekerjaan() {
		return jenisPekerjaan;
	}

	public void setJenisPekerjaan(String jenisPekerjaan) {
		this.jenisPekerjaan = jenisPekerjaan;
	}

	public String getNamaPerusahaan() {
		return namaPerusahaan;
	}

	public void setNamaPerusahaan(String namaPerusahaan) {
		this.namaPerusahaan = namaPerusahaan;
	}

	public String getAnalisaTindakLanjut() {
		return analisaTindakLanjut;
	}

	public void setAnalisaTindakLanjut(String analisaTindakLanjut) {
		this.analisaTindakLanjut = analisaTindakLanjut;
	}

	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.pemantauankinerjapihakketiga_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.pemantauankinerjapihakketiga_m_id_seq", sequenceName = "public.pemantauankinerjapihakketiga_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;

	public Integer getId() {

		return id;
	}

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