roookeee / datus

datus enables you to define a conversion process between two data structures in a fluent functional API
MIT License
41 stars 5 forks source link

Do we need map all the fields ? #40

Closed hb-0 closed 1 year ago

hb-0 commented 1 year ago

It can be painful to map all the fields. Why do we need to map them even when the names are the same?

roookeee commented 1 year ago

There are other mapping frameworks that provide the feature you are asking for. Sadly datus cannot provide this as it would require reflection which would break configuration-less GraalVM compatability which is one of the goals of datus :)

Take a look at MapStruct or some other mapping framework if the automatic mapping is a key feature for you.