In the previous post under MapStruct I showed an example of how to use MapStruct framework for object mapping. I assumed that attribute names in source class and destination class are same. What if they are not. In this post, I will show with an example how to configure MapStruct to map between source and…… Continue reading Object Mapping between classes with different attributes
Category: MapStruct
Simple Object Mapping Example
In this post under MapStruct, I will show with simple example how to map one object attribute values to another object attributes. For our example I will have two classes as shown below Student package package1; public class Student { private int id; private String name; private String className; /*getter and setter methods for each…… Continue reading Simple Object Mapping Example