bug fixing stackoverflow

This commit is contained in:
Francesco Mangiacrapa 2021-09-09 11:55:33 +02:00
parent 6499248d34
commit 717d4b8a5f
3 changed files with 7 additions and 7 deletions

View File

@ -121,14 +121,15 @@ public class ConvertToDataViewModel {
List<LayerConcessioneDV> piantaScavoDV = new ArrayList<LayerConcessioneDV>(
concessione.getPianteFineScavo().size());
for (LayerConcessione lc : concessione.getPianteFineScavo()) {
piantaScavoDV.add(toLayerConcessione(lc, (BaseConcessioneDV) theConcessione));
//TODO CHECK WHY I HAVE TO PASS theConcessione = null IN ORDER TO AVOID GWT serialization error
piantaScavoDV.add(toLayerConcessione(lc, null));
}
theConcessione.setPianteFineScavo(piantaScavoDV);
}
if (concessione.getPosizionamentoScavo() != null) {
LayerConcessioneDV thePosizScavo = toLayerConcessione(concessione.getPosizionamentoScavo(),
(BaseConcessioneDV) theConcessione);
//TODO CHECK WHY I HAVE TO PASS theConcessione = null IN ORDER TO AVOID GWT serialization error
LayerConcessioneDV thePosizScavo = toLayerConcessione(concessione.getPosizionamentoScavo(),null);
theConcessione.setPosizionamentoScavo(thePosizScavo);
}

View File

@ -15,10 +15,11 @@ import org.gcube.application.geoportalcommon.shared.products.model.RecordDV;
*/
public class BaseConcessioneDV extends RecordDV implements Serializable {
/**
*
*/
private static final long serialVersionUID = 8368901256890493525L;
private static final long serialVersionUID = -2291409985743665842L;
/** The introduzione. */
private String introduzione;

View File

@ -238,8 +238,6 @@ public class LayerConcessioneDV extends SDILayerDescriptorDV implements Serializ
builder.append(scalaAcquisizione);
builder.append(", authors=");
builder.append(authors);
builder.append(", refersTo=");
builder.append(refersTo);
builder.append("]");
return builder.toString();
}