package com.jasamedika.medifirst2000.entities;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonBackReference;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

@Entity //@Audited
@Table(name="PapGigiKiriTiga_T")
public class PapGigiKiriTiga extends BaseTransaction{
	@JsonBackReference   
	@OneToOne(cascade=CascadeType.ALL) 
	@JoinColumn(name = "ObjectPapGigiMulutFk")
	@NotNull(message = "PapGigiMulut tidak boleh kosong")
	private PapGigiMulut papGigiMulut;
	
	@Column(name = "ObjectPapGigiMulutFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String papGigiMulutId;

	@Column(name = "delapansatu", nullable = true)
	@Caption(value = "delapansatu")
	private String delapansatu;
	
	@Column(name = "delapandua", nullable = true)
	@Caption(value = "delapandua")
	private String delapandua;
	
	@Column(name = "delapantiga", nullable = true)
	@Caption(value = "delapantiga")
	private String delapantiga;
	
	@Column(name = "delapanempat", nullable = true)
	@Caption(value = "delapanempat")
	private String delapanempat;
	
	@Column(name = "delapanlima", nullable = true)
	@Caption(value = "delapanlima")
	private String delapanlima;
	
	public String getDelapansatu() {
		return delapansatu;
	}
	public void setDelapansatu(String delapansatu) {
		this.delapansatu = delapansatu;
	}
	public String getDelapandua() {
		return delapandua;
	}
	public void setDelapandua(String delapandua) {
		this.delapandua = delapandua;
	}
	public String getDelapantiga() {
		return delapantiga;
	}
	public void setDelapantiga(String delapantiga) {
		this.delapantiga = delapantiga;
	}
	public String getDelapanempat() {
		return delapanempat;
	}
	public void setDelapanempat(String delapanempat) {
		this.delapanempat = delapanempat;
	}
	public String getDelapanlima() {
		return delapanlima;
	}
	public void setDelapanlima(String delapanlima) {
		this.delapanlima = delapanlima;
	}
	public PapGigiMulut getPapGigiMulut() {
		return papGigiMulut;
	}
	public void setPapGigiMulut(PapGigiMulut papGigiMulut) {
		this.papGigiMulut = papGigiMulut;
	}

	
}
