In this session, we had a discussion about how to convert entity to dto's and viceversa using MapStruct library for this following are the development steps
1.add maven dependency and plugin in pom.xml
2.define one interfae annotated with @Mapper and conversion methods
3.invoke these methods from service implementation class
For java fullstack trainings contact
8500122392
javajungle
Негізгі бет Using Mapping Libraries to Map Entity to DTO and Vice Versa | MapStruct Library
Пікірлер: 2