Skip to content

Tag: mapstruct

MapStruct is not generating implementation classes

I am using Mapstruct and Lombok with maven and IDEA and it is refusing to generate mappers implementation. Config: Both Mapstruct and Lombok are registered as annotations processors with idea: Implementation files does not generate when I try to build with IDEA or if I try maven clean install. I have tried ch…

How to convert an interface with MapStruct?

I made some research in the mapStruct documentation but did not find or understood what I could do to achieve this: the conversation of an entity containing an interface to a flat DTO object. Here the entity with the attribute: Here the DTO: We try this mapping : With a classic mapping, mapStruct generates an…