For the following entity mapping with Spring Data and Mongo DB :
@Document(collection = "candidates")
public class Candidate {
private SortedMap<String, ? extends SortedMap<String, List<Expertise>>> expertises;
....
}
When loading the entity from the database the List< Expertise> becomes List< LinkedHashMap>. How can I specify the correct type of the object in the list?