ReportService -> IntelliJ is complaining about ReportDefinitionDto not being ReportDefinitionDto<?>. We also have that for all kind of methods/dto's in our application. To have generic classes not correctly declared can cause problems that are hard to debug (which we already had in the past). We should clean that up.
- it is possible to define a generic class for the ElasticsearchHelper methods to be used for the mapping
We could think about using the TypeReference class that Jackson uses for the mapping.