package com.jasamedika.medifirst2000.entities;

import java.io.Serializable;
import org.hibernate.envers.Audited;
import javax.persistence.*;

import org.hibernate.validator.constraints.NotEmpty;

import com.jasamedika.medifirst2000.base.BaseMaster;
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.google.gson.annotations.Expose;
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;

/**
 * class jenispekerjaan
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "JenisPekerjaan_M")
public class JenisPekerjaan extends BaseMaster {
	
	@NotNull(message = "Jenis Pekerjaan tidak boleh kosong")
	@Column(name = "jenispekerjaan", nullable = false, length = 30)
	@Caption(value = "Jenis Pekerjaan")
	private String jenisPekerjaan;

	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jenispekerjaan_m_id_seq")
	@javax.persistence.SequenceGenerator(name = "public.jenispekerjaan_m_id_seq", sequenceName = "public.jenispekerjaan_m_id_seq", allocationSize = 1)
	@Column(name = "id")
	protected Integer id;


	public String getJenisPekerjaan() {
		return jenisPekerjaan;
	}


	public void setJenisPekerjaan(String jenisPekerjaan) {
		this.jenisPekerjaan = jenisPekerjaan;
	}


	public Integer getId() {
		return id;
	}


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

}