updated model

This commit is contained in:
Fabio Sinibaldi 2021-01-06 15:46:38 +01:00
parent dacaa5ef06
commit 01371e8750
2 changed files with 11 additions and 7 deletions

View File

@ -7,6 +7,8 @@ Mongo Id in record
Mongo Concessioni interface
Added Files.fixFileNAme
ValidationReport as field
Updated Model (#20357)
# [v1.0.4-SNAPSHOT] - 2020-12-9
Projects Rest Interface

View File

@ -16,7 +16,9 @@ public class RelazioneScavo extends AssociatedContent {
private String abstractSection;
// private String abstractSection;
private String abstractIta;
private String abstractEng;
private List<String> responsabili;
private List<String> soggetto;
@ -36,7 +38,7 @@ public class RelazioneScavo extends AssociatedContent {
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((abstractSection == null) ? 0 : abstractSection.hashCode());
// result = prime * result + ((abstractSection == null) ? 0 : abstractSection.hashCode());
// result = prime * result + ((responsabili == null) ? 0 : responsabili.hashCode());
result = prime * result + CollectionsUtils.hashCode(responsabili);
// result = prime * result + ((soggetto == null) ? 0 : soggetto.hashCode());
@ -53,11 +55,11 @@ public class RelazioneScavo extends AssociatedContent {
if (getClass() != obj.getClass())
return false;
RelazioneScavo other = (RelazioneScavo) obj;
if (abstractSection == null) {
if (other.abstractSection != null)
return false;
} else if (!abstractSection.equals(other.abstractSection))
return false;
// if (abstractSection == null) {
// if (other.abstractSection != null)
// return false;
// } else if (!abstractSection.equals(other.abstractSection))
// return false;
// if (responsabili == null) {
// if (other.responsabili != null)
// return false;