package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
import javax.validation.constraints.NotNull;

import org.hibernate.envers.Audited;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.internal.util.logging.Messages;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.helper.Caption;
import org.hibernate.envers.Audited;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
@Table(name = "JenisKelamin_M")
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class JenisKelamin extends BaseMaster {
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jeniskelamin_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.jeniskelamin_m_id_seq", sequenceName = "public.jeniskelamin_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;
	
	@NotNull(message = "Jenis Kelamin tidak boleh kosong")
	@Column(name = "JenisKelamin", nullable = false, length = 20)
	@Caption(value = "Jenis Kelamin")
	private String jenisKelamin;

	@NotNull(message = "Kd Jenis Kelamin tidak boleh kosong")
	@Column(name = "KdJenisKelamin", nullable = false)
	@Caption(value = "Kode Jenis Kelamin")
	private Byte kdJenisKelamin;

	@NotNull(message = "QJenis Kelamin tidak boleh kosong")
	@Column(name = "QJenisKelamin", nullable = false)
	@Caption(value = "QJenis Kelamin")
	private Byte qJenisKelamin;

	public Integer getId() {
		return id;
	}

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

	public String getJenisKelamin() {
		return jenisKelamin;
	}

	public void setJenisKelamin(String jenisKelamin) {
		this.jenisKelamin = jenisKelamin;
	}

	public Byte getKdJenisKelamin() {
		return kdJenisKelamin;
	}

	public void setKdJenisKelamin(Byte kdJenisKelamin) {
		this.kdJenisKelamin = kdJenisKelamin;
	}

	public Byte getqJenisKelamin() {
		return qJenisKelamin;
	}

	public void setqJenisKelamin(Byte qJenisKelamin) {
		this.qJenisKelamin = qJenisKelamin;
	}

}