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;

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

	private Integer aidftipoId;
	private String desctipo;
	private Boolean activo;
	private Date fecmodif;
	private Integer usuarioId;

	public AidfTipo() {
	}

	public AidfTipo(Integer aidftipoId) {
		this.aidftipoId = aidftipoId;
	}

	@Override
	public String toString() {		
		return desctipo;
	}
	
	@Override
    public int hashCode() {
        int hash = 0;
        hash += (aidftipoId != null ? aidftipoId.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 AidfTipo))
            return false;
        
        AidfTipo other = (AidfTipo) object;
        if ((this.aidftipoId == null && other.aidftipoId != null) || (this.aidftipoId != null && !this.aidftipoId.equals(other.aidftipoId))) {
            return false;
        }
        return true;
    }
    
	public AidfTipo(Integer aidftipoId, String desctipo, Boolean activo, Date fecmodif, Integer usuarioId) {
		this.aidftipoId = aidftipoId;
		this.desctipo = desctipo;
		this.activo = activo;
		this.fecmodif = fecmodif;
		this.usuarioId = usuarioId;
	}

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

	public void setAidftipoId(Integer aidftipoId) {
		this.aidftipoId = aidftipoId;
	}

	@Column(name = "DESCTIPO", length = 20)
	public String getDesctipo() {
		return this.desctipo;
	}

	public void setDesctipo(String desctipo) {
		this.desctipo = desctipo;
	}

	@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;
	}
}
