AdmMono/src/com/rjconsultores/ventaboletos/entidad/FiscalAliquotaEmpresa.java

127 lines
3.1 KiB
Java

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.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
@SequenceGenerator(name = "FISCAL_ALIQUOTA_EMP_SEQ", sequenceName = "FISCAL_ALIQUOTA_EMP_SEQ", allocationSize = 1)
@Table(name = "FISCAL_ALIQUOTA_EMPRESA")
public class FiscalAliquotaEmpresa implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(optional = false)
@GeneratedValue(strategy = GenerationType.AUTO, generator = "FISCAL_ALIQUOTA_EMP_SEQ")
@Column(name = "FISCALALIQUOTAEMPRESA_ID")
private Integer fiscalAliquotaEmpresaId;
@JoinColumn(name = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID")
@ManyToOne
private Empresa empresa;
@Column(name = "TOTALIZADOR")
private Integer totalizador;
@Column(name = "ICMS")
private BigDecimal icms;
@Column(name = "ACTIVO")
private Boolean activo;
@Column(name = "FECMODIF")
@Temporal(TemporalType.TIMESTAMP)
private Date fecmodif;
@Column(name = "USUARIO_ID")
private Integer usuarioId;
public Integer getFiscalAliquotaEmpresaId() {
return fiscalAliquotaEmpresaId;
}
public void setFiscalAliquotaEmpresaId(Integer fiscalAliquotaEmpresaId) {
this.fiscalAliquotaEmpresaId = fiscalAliquotaEmpresaId;
}
public Empresa getEmpresa() {
return empresa;
}
public void setEmpresa(Empresa empresa) {
this.empresa = empresa;
}
public Integer getTotalizador() {
return totalizador;
}
public void setTotalizador(Integer totalizador) {
this.totalizador = totalizador;
}
public BigDecimal getIcms() {
return icms;
}
public void setIcms(BigDecimal icms) {
this.icms = icms;
}
public Boolean getActivo() {
return activo;
}
public void setActivo(Boolean activo) {
this.activo = activo;
}
public Date getFecmodif() {
return fecmodif;
}
public void setFecmodif(Date fecmodif) {
this.fecmodif = fecmodif;
}
public Integer getUsuarioId() {
return usuarioId;
}
public void setUsuarioId(Integer usuarioId) {
this.usuarioId = usuarioId;
}
@Override
public String toString() {
return fiscalAliquotaEmpresaId.toString();
}
@Override
public int hashCode() {
int hash = 0;
hash += (fiscalAliquotaEmpresaId != null ? fiscalAliquotaEmpresaId.hashCode() : 0);
return hash;
}
@Override
public boolean equals(Object object) {
if (!(object instanceof FiscalAliquotaEmpresa)) {
return false;
}
FiscalAliquotaEmpresa other = (FiscalAliquotaEmpresa) object;
if ((this.fiscalAliquotaEmpresaId == null && other.fiscalAliquotaEmpresaId != null) || (this.fiscalAliquotaEmpresaId != null && !this.fiscalAliquotaEmpresaId.equals(other.fiscalAliquotaEmpresaId))) {
return false;
}
return true;
}
}