We were discussing with the colleagues as to why the call below returns an array in the ResponseEntity:
ResponseEntity<WakeupProviderSettingsDTO[]> rep =
restTemplate.getForEntity(url, WakeupProviderSettingsDTO[].class);
instead of a List<WakeupProviderSettingsDTO>
or sth.
Why can't we simply transfer entities as lists?
Is it because There are no Class literals for parameterized types?
Is it a performance thing? is it because of the fixed size of response set?