115 lines
3.2 KiB
Java
115 lines
3.2 KiB
Java
package com.rjconsultores.ventaboletos.entidad;
|
|
|
|
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_RELGERENCIAL_EMP_SEQ", sequenceName = "FISCAL_RELGERENCIAL_EMP_SEQ", allocationSize = 1)
|
|
@Table(name = "FISCAL_RELGERENCIAL_EMPRESA")
|
|
public class FiscalRelgerencialEmpresa {
|
|
|
|
@Id
|
|
@Basic(optional = false)
|
|
@Column(name = "FISCALRELGERENCIAL_ID")
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "FISCAL_RELGERENCIAL_EMP_SEQ")
|
|
private Long fiscalrelgerencialId;
|
|
@Column(name = "TIPORELGERENCIAL")
|
|
private String tiporelgerencial;
|
|
@Column(name = "DESCRICAO")
|
|
private String descricao;
|
|
@ManyToOne
|
|
@JoinColumn(name = "EMPRESA_ID")
|
|
private Empresa empresa;
|
|
@Column(name = "ACTIVO")
|
|
private Boolean activo;
|
|
@Column(name = "FECMODIF")
|
|
@Temporal(TemporalType.TIMESTAMP)
|
|
private Date fecmodif;
|
|
@Column(name = "USUARIO_ID")
|
|
private Integer usuarioId;
|
|
|
|
public Long getFiscalrelgerencialId() {
|
|
return fiscalrelgerencialId;
|
|
}
|
|
public void setFiscalrelgerencialId(Long relgerencialId) {
|
|
this.fiscalrelgerencialId = relgerencialId;
|
|
}
|
|
public String getTiporelgerencial() {
|
|
return tiporelgerencial;
|
|
}
|
|
public void setTiporelgerencial(String tiporelgerencial) {
|
|
this.tiporelgerencial = tiporelgerencial;
|
|
}
|
|
public String getDescricao() {
|
|
return descricao;
|
|
}
|
|
public void setDescricao(String descricao) {
|
|
this.descricao = descricao;
|
|
}
|
|
public Empresa getEmpresa() {
|
|
return empresa;
|
|
}
|
|
public void setEmpresa(Empresa empresa) {
|
|
this.empresa = empresa;
|
|
}
|
|
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;
|
|
}
|
|
public Boolean getActivo() {
|
|
return activo;
|
|
}
|
|
public void setActivo(Boolean activo) {
|
|
this.activo = activo;
|
|
}
|
|
@Override
|
|
public int hashCode() {
|
|
final int prime = 31;
|
|
int result = 1;
|
|
result = prime * result + ((empresa == null) ? 0 : empresa.hashCode());
|
|
result = prime * result + ((tiporelgerencial == null) ? 0 : tiporelgerencial.hashCode());
|
|
return result;
|
|
}
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
if (this == obj)
|
|
return true;
|
|
if (obj == null)
|
|
return false;
|
|
if (getClass() != obj.getClass())
|
|
return false;
|
|
FiscalRelgerencialEmpresa other = (FiscalRelgerencialEmpresa) obj;
|
|
if (empresa == null) {
|
|
if (other.empresa != null)
|
|
return false;
|
|
} else if (!empresa.equals(other.empresa))
|
|
return false;
|
|
if (tiporelgerencial == null) {
|
|
if (other.tiporelgerencial != null)
|
|
return false;
|
|
} else if (!tiporelgerencial.equals(other.tiporelgerencial))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
}
|