mardi 10 septembre 2019

What is a good way for getter to setter mapping from simple java objects (POJOs). Can is use reflection for it?

Hi i have two java objects, which are independent to each other, but share the same getter and setter methods. For example, I have an UserEntity and UserDTO object and I will map all getter values from the UserEntity to all setter of the UserDTO.

What is the best way of doing such kind of things? I prefer to do it with java reflection, but I also would like to now if there are some useful framework implementations outside.





Aucun commentaire:

Enregistrer un commentaire