Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One potential problem that could be encountered when updating an Entity that was converted from a DTO using ModelMapper in a Spring Boot Service is that any changes made to the original DTO after it was converted may not be reflected in the Entity. This is because the ModelMapper only maps values from the DTO to the Entity during the initial conversion, and does not track any subsequent changes to the DTO properties. Therefore, any updates to the DTO properties must be explicitly applied to the corresponding Entity properties before saving the Entity to the database.