I am creating a certificate and I can specify the transit countries in it, they must be saved in the order in which they were set by the user. But under some circumstances, countries may be saved in random order
I looked at the logs and it turned out that the order changes somewhere while converting from a dto to an entity. All mapping takes place using the mapstruct library and I suspect that the countryDTOListToCountrySet method is to blame. But I can’t find any information on whether the order may be confused when converting from list to set. Can this happen? And if not, how can I log the mapper class generated by mapstruct? So that I can see what happens with each step in mapping DTO to entity
user25112351 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.