/*
 * 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 = "AJUSTE_EVENTO_EXTRA")
@SequenceGenerator(name = "AJUSTE_EVENTO_EXTRA_SEQ", sequenceName = "AJUSTE_EVENTO_EXTRA_SEQ", allocationSize = 1)
public class AjusteEventoExtra implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "AJUSTE_EVENTO_EXTRA_SEQ")
    @Column(name = "AJUSTEEVENTOEXTRA_ID")
    private Long ajusteeventoextraId;
    @Column(name = "TIPOEVENTOEXTRA_ID")
    private Integer tipoeventoextraId;
    @Column(name = "FECHORINGRESO")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fechoringreso;
    @Column(name = "CORTETURNO_ID")
    private Integer corteturnoId;
    @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 = "DEPOSITOBANCARIO_ID")
    private Integer depositobancarioId;
    @Column(name = "EMPRESA_ID")
    private Integer empresaId;
    @Column(name = "USUARIO_ID")
    private Integer usuarioId;
    @Column(name = "FECMODIF")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fecmodif;
    @Column(name = "ACTIVO")
    private Boolean activo;
    @Column(name = "STATUSAJUSTE")
    private Short statusajuste;

    public AjusteEventoExtra() {
    }

    public AjusteEventoExtra(Long ajusteeventoextraId) {
        this.ajusteeventoextraId = ajusteeventoextraId;
    }

    public Long getAjusteeventoextraId() {
        return ajusteeventoextraId;
    }

    public void setAjusteeventoextraId(Long ajusteeventoextraId) {
        this.ajusteeventoextraId = ajusteeventoextraId;
    }

    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 Integer getCorteturnoId() {
        return corteturnoId;
    }

    public void setCorteturnoId(Integer corteturnoId) {
        this.corteturnoId = corteturnoId;
    }

    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 getDepositobancarioId() {
        return depositobancarioId;
    }

    public void setDepositobancarioId(Integer depositobancarioId) {
        this.depositobancarioId = depositobancarioId;
    }

    public Integer getEmpresaId() {
        return empresaId;
    }

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

    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 getStatusajuste() {
        return statusajuste;
    }

    public void setStatusajuste(Short statusajuste) {
        this.statusajuste = statusajuste;
    }

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

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