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 JenisOrganisasi
 * 
 * @author Generator
 */
//@Entity
//@Table(name = "JenisOrganisasi_M")
public class JenisOrganisasiVO extends BaseMasterVO {
	@Caption(value="Jenis Organisasi")
	private String jenisOrganisasi;

	public void setJenisOrganisasi(String jenisOrganisasi) {
		this.jenisOrganisasi = jenisOrganisasi;
	}

	@Column(name = "JenisOrganisasi", nullable = false , length = 80)
	public String getJenisOrganisasi(){
		return this.jenisOrganisasi;
	}

	@Caption(value="Kode Jenis Organisasi")
	private Byte kdJenisOrganisasi;

	public void setKdJenisOrganisasi(Byte kdJenisOrganisasi) {
		this.kdJenisOrganisasi = kdJenisOrganisasi;
	}

	@Column(name = "KdJenisOrganisasi", nullable = false )
	public Byte getKdJenisOrganisasi(){
		return this.kdJenisOrganisasi;
	}

	@ManyToOne
	@JoinColumn(name = "ObjectJenisOrganisasiHeadFk")
	@Caption(value="Object Jenis Organisasi Head")
	private JenisOrganisasiVO jenisOrganisasiHead;

	public void setJenisOrganisasiHead(JenisOrganisasiVO jenisOrganisasiHead) {
		this.jenisOrganisasiHead = jenisOrganisasiHead;
	}

	@Column(name = "KdJenisOrganisasiHead", nullable = true )
	public JenisOrganisasiVO getJenisOrganisasiHead(){
		return this.jenisOrganisasiHead;
	}

	@Column(name = "ObjectJenisOrganisasiHeadFk", insertable=false,updatable=false)
	private Integer jenisOrganisasiHeadId;

	@Caption(value="QJenis Organisasi")
	private Byte qJenisOrganisasi;

	public void setqJenisOrganisasi(Byte qJenisOrganisasi) {
		this.qJenisOrganisasi = qJenisOrganisasi;
	}

	@Column(name = "QJenisOrganisasi", nullable = false )
	public Byte getqJenisOrganisasi(){
		return this.qJenisOrganisasi;
	}
/*
	//
	@OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="kdjenisorganisasihead")
	private Set<JenisOrganisasi> JenisOrganisasiSet = new HashSet<JenisOrganisasi>();

	public Set<JenisOrganisasi> getJenisOrganisasiSet() {
		return JenisOrganisasiSet;
	}

	public void setJenisOrganisasiSet(Set<JenisOrganisasi> jenisOrganisasiSet) {
		JenisOrganisasiSet = jenisOrganisasiSet;
	}
*/
}

