Skip to content

Commit

Permalink
AER-2804 serialize ScenarionSituationResults to be ably to pass calcu…
Browse files Browse the repository at this point in the history
…lation id via message bus (#302)

Than the calculation id can be used to retrieve the results to put in the GML. But we don't want to serializer results in this class as those are not needed, but only add to the message load.
  • Loading branch information
Hilbrand authored Sep 24, 2024
1 parent c23f593 commit 9a46d65
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package nl.overheid.aerius.shared.domain.v2.scenario;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

Expand All @@ -24,10 +25,12 @@
/**
* Object to keep track of results related to a scenario situation.
*/
public class ScenarioSituationResults {
public class ScenarioSituationResults implements Serializable {

private static final long serialVersionUID = 1L;

private int calculationId;
private List<CalculationPointFeature> results = new ArrayList<>();
private transient List<CalculationPointFeature> results = new ArrayList<>();

public int getCalculationId() {
return calculationId;
Expand Down

0 comments on commit 9a46d65

Please sign in to comment.