posted 16 years ago
Hi All,
I would like to know your suggestions on the best approach for mapping utility between POJO's.
What we want to create is a mapper utility to transform our domain objects into transfer objects.
Say I have an object CustomerDO which can comprise of a deep object graph like AddressDO, PersonalDO etc.
Now when I receive this object I want to map this object transparently into a our own application specific POJO's so for CustomerDO we will have an equivalent CustomerTO.
I want to know what is the best approach for doing this transport of values between two structurally similar classes. Should I use reflection or plain getter/setter or any other approach.
Do post your thoughts on the same
Regards