/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rjconsultores.ventaboletos.entidad;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Rafius
 */
@Entity
@Table(name = "EVENTO_EXTRA")
@SequenceGenerator(name = "EVENTO_EXTRA_SEQ", sequenceName = "EVENTO_EXTRA_SEQ", allocationSize = 1)
public class EventoExtra implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "EVENTO_EXTRA_SEQ")
    @Column(name = "EVENTOEXTRA_ID")
    private Long eventoextraId;
    @Column(name = "TIPOEVENTOEXTRA_ID")
    private Integer tipoeventoextraId;
    @Column(name = "FECHORINGRESO")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fechoringreso;
    @Column(name = "IMPINGRESO")
    private BigDecimal impingreso;
    @Column(name = "NUMDOCUMENTO")
    private String numdocumento;
    @Column(name = "IMPORTEIVA")
    private BigDecimal importeiva;
    @Column(name = "PUNTOVENTA_ID")
    private Integer puntoventaId;
    @Column(name = "FORMAPAGO_ID")
    private Integer formapagoId;
    @Column(name = "USUARIO_ID")
    private Integer usuarioId;
    @Column(name = "FECMODIF")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fecmodif;
    @Column(name = "ACTIVO")
    private Boolean activo;
    @Column(name = "CANTBOLETOS")
    private Short cantboletos;
    @Column(name = "CORRIDA_ID")
    private Integer corridaId;
    @Column(name = "FECCORRIDA")
    @Temporal(TemporalType.TIMESTAMP)
    private Date feccorrida;
    @Column(name = "CONDUCTOR1_ID")
    private Integer conductor1Id;
    @Column(name = "EMPRESA_ID")
    private Integer empresaId;
    @Column(name = "CONDUCTOR2_ID")
    private Integer conductor2Id;
    @Column(name = "AUTOBUS")
    private Integer autobus;

    public EventoExtra() {
    }

    public EventoExtra(Long eventoextraId) {
        this.eventoextraId = eventoextraId;
    }

    public Long getEventoextraId() {
        return eventoextraId;
    }

    public void setEventoextraId(Long eventoextraId) {
        this.eventoextraId = eventoextraId;
    }

    public Integer getTipoeventoextraId() {
        return tipoeventoextraId;
    }

    public void setTipoeventoextraId(Integer tipoeventoextraId) {
        this.tipoeventoextraId = tipoeventoextraId;
    }

    public Date getFechoringreso() {
        return fechoringreso;
    }

    public void setFechoringreso(Date fechoringreso) {
        this.fechoringreso = fechoringreso;
    }

    public BigDecimal getImpingreso() {
        return impingreso;
    }

    public void setImpingreso(BigDecimal impingreso) {
        this.impingreso = impingreso;
    }

    public String getNumdocumento() {
        return numdocumento;
    }

    public void setNumdocumento(String numdocumento) {
        this.numdocumento = numdocumento;
    }

    public BigDecimal getImporteiva() {
        return importeiva;
    }

    public void setImporteiva(BigDecimal importeiva) {
        this.importeiva = importeiva;
    }

    public Integer getPuntoventaId() {
        return puntoventaId;
    }

    public void setPuntoventaId(Integer puntoventaId) {
        this.puntoventaId = puntoventaId;
    }

    public Integer getFormapagoId() {
        return formapagoId;
    }

    public void setFormapagoId(Integer formapagoId) {
        this.formapagoId = formapagoId;
    }

    public Integer getUsuarioId() {
        return usuarioId;
    }

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

    public Date getFecmodif() {
        return fecmodif;
    }

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

    public Boolean getActivo() {
        return activo;
    }

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

    public Short getCantboletos() {
        return cantboletos;
    }

    public void setCantboletos(Short cantboletos) {
        this.cantboletos = cantboletos;
    }

    public Integer getCorridaId() {
        return corridaId;
    }

    public void setCorridaId(Integer corridaId) {
        this.corridaId = corridaId;
    }

    public Date getFeccorrida() {
        return feccorrida;
    }

    public void setFeccorrida(Date feccorrida) {
        this.feccorrida = feccorrida;
    }

    public Integer getConductor1Id() {
        return conductor1Id;
    }

    public void setConductor1Id(Integer conductor1Id) {
        this.conductor1Id = conductor1Id;
    }

    public Integer getEmpresaId() {
        return empresaId;
    }

    public void setEmpresaId(Integer empresaId) {
        this.empresaId = empresaId;
    }

    public Integer getConductor2Id() {
        return conductor2Id;
    }

    public void setConductor2Id(Integer conductor2Id) {
        this.conductor2Id = conductor2Id;
    }

    public Integer getAutobus() {
        return autobus;
    }

    public void setAutobus(Integer autobus) {
        this.autobus = autobus;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (eventoextraId != null ? eventoextraId.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 EventoExtra)) {
            return false;
        }
        EventoExtra other = (EventoExtra) object;
        if ((this.eventoextraId == null && other.eventoextraId != null) || (this.eventoextraId != null && !this.eventoextraId.equals(other.eventoextraId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.rjconsultores.ventaboletos.entidad.EventoExtra[eventoextraId=" + eventoextraId + "]";
    }
}
