MapStruct updater not compiling properly
I'm creating a REST API that handles product management. I currently have 3 Mapper (from MapStruct) for classes:
Account
, Product
, and Variant
.
The branch I'm working on if you need to understand the structure:
https://github.com/vianneynara/kuenyawz-api/tree/feature/21-initialize-product-variant-image
TL;DR source codes:
Entities:
https://github.com/vianneynara/kuenyawz-api/tree/feature/21-initialize-product-variant-image/src/main/java/dev/realtards/kuenyawz/entities
Patch DTOs:
Account patch DTO
Product patch DTO
Variant patch DTO
(the issue) Mapper interfaces:
https://github.com/vianneynara/kuenyawz-api/tree/feature/21-initialize-product-variant-image/src/main/java/dev/realtards/kuenyawz/mapper
The issue I'm having
The mappers for Product and Variant does not generate properly except for Account are attached in the images (discord limit). The account generates it PROPERLY, but not for others.4 Replies
⌛
This post has been reserved for your question.
Hey @circle! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Forgot to add the generated Variant mapper:
I have tried cleaning and recompiling, results the same.
I've read the documentation here:
https://mapstruct.org/documentation/stable/reference/html/#updating-bean-instances
But it seems that I have followed the instructions
WAIT AM I STUPID
I FORGOT to add setters and getters on the patch DTOS?
LOL
Gonna keep this thread up until they pass the tests
Post Closed
This post has been closed by <@389034898666553344>.