package com.jasamedika.medifirst2000.vo;

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

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

public class ThtDataVO extends BaseTransactionVO{
	@ManyToOne
	@NotNull(message = "ObjectthtFk tidak boleh kosong")
	@JoinColumn(name = "ObjectthtFk")
	@Caption(value = "Object tht")
	private ThtVO tht;

	@Column(name = "ObjectthtFk", insertable = false, updatable = false,nullable=true)
	private String thtId;

	@Column(name = "id", nullable = true, length = 50)
	@Caption(value = "id")
	private Integer id;

	@Column(name = "title", nullable = true, length = 50)
	@Caption(value = "title")
	private String title;

	@Column(name = "item", nullable = true, length = 50)
	@Caption(value = "item")
	private String item;

	@Column(name = "value", nullable = true, length = 50)
	@Caption(value = "value")
	private String value;

	public ThtVO getTht() {
		return tht;
	}

	public void setTht(ThtVO tht) {
		this.tht = tht;
	}

	public String getThtId() {
		return thtId;
	}

	public void setThtId(String thtId) {
		this.thtId = thtId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Integer getId() {
		return id;
	}

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

	
	
	
}
