I'm trying to do object properties mapping from a java bean to a non-bean POJO (a third party library object with no setters). Observing the source code, object mappers libraries out there relies on setters method for property value sets.
My question is: is there a library that wraps such non-bean POJO into a JavaBean? ( essentially generate setters and getters for all the fields and use reflection to properly setAccessible(true) of non-public fields, etc. ), such that I can map properties into the generated JavaBean, And once all its fields get populated, I can extract/convert back the underlying non-bean POJO out of it?
I decided to use JDTO as my object mapping library of choice.
Thanks in advance!