How to tell Dozer to use LinkedHashSet collection in destination field?
问题 In first class i have field: private Set<Country> countries; public Set<Country> getCountries() { return countries; } public void setCountries(Set<Country> countries) { this.countries = countries; } which will contain LinkedHashSet implementation. In second class i have identical declaration, but during mapping, Dozer creates HashSet implementation in destination class, which destroys the order of elements. How to tell Dozer to use LinkedHashSet in destination class? 回答1: When Dozer maps a