In all my previous post under MapStruct, in the examples I showed MapStruct used to call public getter and setter methods to map data from one object to another. It is not compulsory that we should always have public getter and setter methods. MapStruct can directly access the fields if they are marked “public” or…… Continue reading Mapping using direct field access