Spring Boot @Mapping gives no read accessor error
Hello! I'm trying to use @mapping to map a DTo from entities
My Main DTO is
DTOs:
Entities:
On an other file i set ans use the entities on repos, then i want to return the MainDTO:
then i got problems on mapping them:
- If in main i've:
MainDTO mDTO(ProjectEntity projEntity, SecondEntity sEntity, TaskEntity tEntity);
it returns correctly filled the ProjectDTO and TaskDTO, except for the ProjectDTO Second, that is null.
- If i try
works, it fill the Second, but the rest of projectDTO is empty (TaskDTO is filled).
- If i try something like
or
it gives the error:
java: no read accessor for property "project" in tagret type
Someone has tips for this? THank you so much3 Replies
⌛
This post has been reserved for your question.
Hey @Romans! 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 closed after 300 minutes of inactivity.
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.