Skip to content
Snippets Groups Projects
Commit 039d17d7 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

fix: Jackson serialization to interface

parent bc12e9f0
No related branches found
No related tags found
No related merge requests found
......@@ -236,7 +236,7 @@ public class SeptoriaApiicolaModel extends I18nImpl implements Model{
// Setting time zone
this.timeZone = TimeZone.getTimeZone((String) config.getConfigParameter("timeZone"));
// Getting observation data
this.pestObservations = this.getObjectMapper().convertValue(config.getConfigParameter("pestObservations"), new TypeReference<List<ObservationImpl>>(){});
this.pestObservations = this.getObjectMapper().convertValue(config.getConfigParameter("pestObservations"), new TypeReference<List<Observation>>(){});
if(this.pestObservations != null && ! this.pestObservations.isEmpty())
{
for(Observation o:this.pestObservations)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment