Skip to content
Advertisement

Set with Optional

I have this code:

JavaScript

I want to replace this code to this:

JavaScript

and map this field from myClass to myClass2
How i can do it?

Advertisement

Answer

Did you mean to use:

JavaScript

For mapping I would suggest to read about MapStruct, it is a good tool.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement