[BUG] Rigenerato metodo equals e hashCode della classe FiltroOrdini

This commit is contained in:
Giuseppe Scorrano 2019-07-26 18:12:02 +02:00
parent 43ff3b1856
commit 1eddd1aed2

View File

@ -83,14 +83,17 @@ public class FiltroOrdineDTO {
FiltroOrdineDTO that = (FiltroOrdineDTO) o; FiltroOrdineDTO that = (FiltroOrdineDTO) o;
if (getNumOrd() != that.getNumOrd()) return false; if (getNumOrd() != that.getNumOrd()) return false;
if (!getGestioneOrd().equals(that.getGestioneOrd())) return false; if (getGestioneOrd() != null ? !getGestioneOrd().equals(that.getGestioneOrd()) : that.getGestioneOrd() != null)
return dataOrd.equals(that.dataOrd); return false;
if (dataOrd != null ? !dataOrd.equals(that.dataOrd) : that.dataOrd != null) return false;
return dataCons != null ? dataCons.equals(that.dataCons) : that.dataCons == null;
} }
@Override @Override
public int hashCode() { public int hashCode() {
int result = getGestioneOrd().hashCode(); int result = getGestioneOrd() != null ? getGestioneOrd().hashCode() : 0;
result = 31 * result + dataOrd.hashCode(); result = 31 * result + (dataOrd != null ? dataOrd.hashCode() : 0);
result = 31 * result + (dataCons != null ? dataCons.hashCode() : 0);
result = 31 * result + getNumOrd(); result = 31 * result + getNumOrd();
return result; return result;
} }