package com.jasamedika.medifirst2000.entities;

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

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "ApresiasiAtasLayanan_T")
public class ApresiasiAtasLayanan extends BaseTransaction {

	@ManyToOne
	@JoinColumn(name = "ObjectGambarMukaKepuasanFk")
	@NotNull(message = "GambarMukaKepuasan tidak boleh kosong")
	@Caption(value = "Gambar Muka Kepuasan")
	private GambarMukaKepuasan gambarMukaKepuasan;

	@Column(name = "ObjectGambarMukaKepuasanFk", insertable = false, updatable = false, nullable = false)
	private Integer gambarMukaKepuasanId;

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

}
