Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop allow-circular-references. #18095

Merged
merged 3 commits into from
Mar 12, 2022
Merged

Conversation

mshima
Copy link
Member

@mshima mshima commented Mar 11, 2022

Mapstruct mapper were reusing relationship otherEntity mappers causing a circular dependency.
With this PR, relationship mappers are generated at the entity mapper itself, removing external mappers reuse.

Fixes #17774.


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@mshima mshima force-pushed the skip_ci-circular branch 3 times, most recently from 9f2ca48 to 44aa82a Compare March 12, 2022 14:13
@mshima mshima marked this pull request as ready for review March 12, 2022 15:51
Copy link
Member

@DanielFran DanielFran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trusting you on this

@DanielFran DanielFran merged commit 56e5f2d into jhipster:main Mar 12, 2022
@mshima mshima deleted the skip_ci-circular branch March 12, 2022 18:41
@pascalgrimaud pascalgrimaud added this to the 7.8.0 milestone Mar 27, 2022
@richersoon
Copy link

richersoon commented Apr 8, 2022

So starting JHipster 7.8.0 we are now favoring duplicate of code than "reusing relationship otherEntity mappers"

For example if I have more than 10 mappers that has UserDTO field, then I also need to 10 duplicate toDtoUserId method in all 10+ mappers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix deprecated property that allows circular references
4 participants