0

In the most projects I worked the last years one used DTO objects for the MVC endpoint mapping and manual creation of the database objects.

I stumbled over the method convertValue and wondered if one can use in general instead of implement dump conversion code.

MyClass object = new ObjectMapper().convertValue(map, MyClass.class);

What are your experiences, also with the alternatives like GSON. Finally I'm wondering, if there is a programming language, where the such a transformation of composite objects come out of the box?

Some links:

0 Answers0