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.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 TransportasiPasien
 * 
 * @author Generator
 */
@Entity // @Audited
@Table(name = "TransportasiPasien_M")
public class TransportasiPasien extends BaseMaster {
	@NotNull(message = "Kd Transportasi tidak boleh kosong")
	@Column(name = "KdTransportasi", nullable = false)
	@Caption(value = "Kode Transportasi")
	private Byte kdTransportasi;

	public void setKdTransportasi(Byte kdTransportasi) {
		this.kdTransportasi = kdTransportasi;
	}

	public Byte getKdTransportasi() {
		return this.kdTransportasi;
	}

	@NotNull(message = "Nama Transportasi tidak boleh kosong")
	@Column(name = "NamaTransportasi", nullable = false, length = 30)
	@Caption(value = "Nama Transportasi")
	private String namaTransportasi;

	public void setNamaTransportasi(String namaTransportasi) {
		this.namaTransportasi = namaTransportasi;
	}

	public String getNamaTransportasi() {
		return this.namaTransportasi;
	}

	@NotNull(message = "QTransportasi tidak boleh kosong")
	@Column(name = "QTransportasi", nullable = false)
	@Caption(value = "QTransportasi")
	private Byte qTransportasi;

	public void setqTransportasi(Byte qTransportasi) {
		this.qTransportasi = qTransportasi;
	}

	public Byte getqTransportasi() {
		return this.qTransportasi;
	}

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

	public Integer getId() {

		return id;
	}

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