package com.rjconsultores.ventaboletos.entidad;

// Generated 26/10/2013 14:51:58 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * AidfEspecie generated by hbm2java
 */
@Entity
@Table(name = "AIDF_ESPECIE")
public class AidfEspecie implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	private Integer aidfespId;
	private String decespecie;
	private Boolean activo;
	private Date fecmodif;
	private Integer usuarioId;

	public AidfEspecie() {
	}

	public AidfEspecie(Integer aidfespId) {
		this.aidfespId = aidfespId;
	}

	@Override
	public String toString() {
		return decespecie;
	}

	@Override
	public int hashCode() {
		int hash = 0;
		hash += (aidfespId != null ? aidfespId.hashCode() : 0);
		return hash;
	}

	@Override
	public boolean equals(Object object) {
		// TODO: Warning - this method won't work in the case the id fields are not set
		if (!(object instanceof AidfEspecie))
			return false;

		AidfEspecie other = (AidfEspecie) object;
		if ((this.aidfespId == null && other.aidfespId != null) || (this.aidfespId != null && !this.aidfespId.equals(other.aidfespId))) {
			return false;
		}
		return true;
	}

	public AidfEspecie(Integer aidfespId, String decespecie, Boolean activo, Date fecmodif, Integer usuarioId) {
		this.aidfespId = aidfespId;
		this.decespecie = decespecie;
		this.activo = activo;
		this.fecmodif = fecmodif;
		this.usuarioId = usuarioId;
	}

	@Id
	@Column(name = "AIDFESP_ID", unique = true, nullable = false, precision = 4, scale = 0)
	public Integer getAidfespId() {
		return this.aidfespId;
	}

	public void setAidfespId(Integer aidfespId) {
		this.aidfespId = aidfespId;
	}

	@Column(name = "DECESPECIE", length = 20)
	public String getDecespecie() {
		return this.decespecie;
	}

	public void setDecespecie(String decespecie) {
		this.decespecie = decespecie;
	}

	@Column(name = "ACTIVO", precision = 1, scale = 0)
	public Boolean getActivo() {
		return this.activo;
	}

	public void setActivo(Boolean activo) {
		this.activo = activo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FECMODIF", length = 7)
	public Date getFecmodif() {
		return this.fecmodif;
	}

	public void setFecmodif(Date fecmodif) {
		this.fecmodif = fecmodif;
	}

	@Column(name = "USUARIO_ID", precision = 7, scale = 0)
	public Integer getUsuarioId() {
		return this.usuarioId;
	}

	public void setUsuarioId(Integer usuarioId) {
		this.usuarioId = usuarioId;
	}
}
