package com.jasamedika.medifirst2000.vo;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;
import java.util.Date;
import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class JenisHukuman
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "JenisHukuman_M")
public class JenisHukumanVO extends BaseMasterVO {
	@Caption(value="Jenis Hukuman")
	private String jenisHukuman;

	public void setJenisHukuman(String jenisHukuman) {
		this.jenisHukuman = jenisHukuman;
	}

	@Column(name = "JenisHukuman", nullable = false , length = 50)
	public String getJenisHukuman(){
		return this.jenisHukuman;
	}

	@Caption(value="Kode Jenis Hukuman")
	private Byte kdJenisHukuman;

	public void setKdJenisHukuman(Byte kdJenisHukuman) {
		this.kdJenisHukuman = kdJenisHukuman;
	}

	@Column(name = "KdJenisHukuman", nullable = false )
	public Byte getKdJenisHukuman(){
		return this.kdJenisHukuman;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectJenisHukumanHeadFk")
	@Caption(value="Object Jenis Hukuman Head")
	private JenisHukumanVO jenisHukumanHead;

	public void setJenisHukumanHead(JenisHukumanVO jenisHukumanHead) {
		this.jenisHukumanHead = jenisHukumanHead;
	}

	@Column(name = "KdJenisHukumanHead", nullable = true )
	public JenisHukumanVO getJenisHukumanHead(){
		return this.jenisHukumanHead;
	}

	@Column(name = "ObjectJenisHukumanHeadFk", insertable=false,updatable=false)
	private Integer jenisHukumanHeadId;

	@Caption(value="QJenis Hukuman")
	private Byte qJenisHukuman;

	public void setqJenisHukuman(Byte qJenisHukuman) {
		this.qJenisHukuman = qJenisHukuman;
	}

	@Column(name = "QJenisHukuman", nullable = false )
	public Byte getqJenisHukuman(){
		return this.qJenisHukuman;
	}

	/*//
	@OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="kdjenishukumanhead")
	private Set<JenisHukuman> JenisHukumanSet = new HashSet<JenisHukuman>();

	public Set<JenisHukuman> getJenisHukumanSet() {
		return JenisHukumanSet;
	}

	public void setJenisHukumanSet(Set<JenisHukuman> jenisHukumanSet) {
		JenisHukumanSet = jenisHukumanSet;
	}
	*/
	

}

