Skip to content
Advertisement

MapStruct adding 1 suffix to object

I am using mapstruct to map my DTO to entity,

My Entity

JavaScript

My DTO

JavaScript

Generated MapStruct Implementation

JavaScript

I tried editing the file but it is unable to create break and always gives break1

Advertisement

Answer

Break is a reserved keyboard, use different name or it would always add 1 suffix for successful compilation.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement