Merge pull request 'fixes bug#AL-4214' (!243) from AL-4214 into master

Reviewed-on: adm/ModelWeb#243
Reviewed-by: fabio <fabio.faria@rjconsultores.com.br>
master
Célio de Souza Ribeiro JR 2024-08-09 10:49:41 +00:00
commit d6076db704
2 changed files with 41 additions and 30 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ModelWeb</artifactId>
<version>1.91.0</version>
<version>1.92.0</version>
<distributionManagement>
<repository>

View File

@ -98,6 +98,8 @@ public class TipoEventoExtra implements Serializable {
private String natureza;
@Column(name = "CONTACONTABIL")
private String contaContabil;
@Column(name="INDQUANTVIASIMPRIMIR")
private Integer indQuantViasImp;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "tipoeventoextra")
@LazyCollection(LazyCollectionOption.FALSE)
private List<TipoEventoExtraEmpresa> empresas = new ArrayList<TipoEventoExtraEmpresa>();
@ -356,34 +358,6 @@ public class TipoEventoExtra implements Serializable {
this.indoperacion = indoperacion;
}
@Override
public int hashCode() {
int hash = 0;
hash += (tipoeventoextraId != null ? tipoeventoextraId.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 TipoEventoExtra)) {
return false;
}
TipoEventoExtra other = (TipoEventoExtra) object;
if ((this.tipoeventoextraId == null && other.tipoeventoextraId != null)
|| (this.tipoeventoextraId != null && !this.tipoeventoextraId
.equals(other.tipoeventoextraId))) {
return false;
}
return true;
}
@Override
public String toString() {
return descTipoEvento;
}
public String getNatureza() {
return natureza;
}
@ -476,4 +450,41 @@ public class TipoEventoExtra implements Serializable {
this.impresionLayoutConfig = impresionLayoutConfig;
}
public Integer getIndQuantViasImp() {
return indQuantViasImp;
}
public void setIndQuantViasImp(Integer indQuantViasImp) {
this.indQuantViasImp = indQuantViasImp;
}
@Override
public int hashCode() {
int hash = 0;
hash += (tipoeventoextraId != null ? tipoeventoextraId.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 TipoEventoExtra)) {
return false;
}
TipoEventoExtra other = (TipoEventoExtra) object;
if ((this.tipoeventoextraId == null && other.tipoeventoextraId != null)
|| (this.tipoeventoextraId != null && !this.tipoeventoextraId
.equals(other.tipoeventoextraId))) {
return false;
}
return true;
}
@Override
public String toString() {
return descTipoEvento;
}
}