Overview of the issue
Entities that are mapped to a DTO are new serialized. So they don't need json annotations
Motivation for or Use Case
Unnecessary code generated
Reproduce the error
Generate a project with a DTO mapping.
Create an entity with a relationship
There will be a @JsonIgnoreProperties annotation added
Related issues
N/A
Suggest a Fix
Add the annotation only when the domain object is directly returned to the UI.
It's done in _persistClass_.java.jhi.jakarta_persistence.ejs line 106.
I could fix it but I'm not sure of the check that should be made.
JHipster Version(s)
8.11.0
Browsers and Operating System
Not important
Overview of the issue
Entities that are mapped to a DTO are new serialized. So they don't need json annotations
Motivation for or Use Case
Unnecessary code generated
Reproduce the error
Generate a project with a DTO mapping.
Create an entity with a relationship
There will be a @JsonIgnoreProperties annotation added
Related issues
N/A
Suggest a Fix
Add the annotation only when the domain object is directly returned to the UI.
It's done in
_persistClass_.java.jhi.jakarta_persistence.ejsline 106.I could fix it but I'm not sure of the check that should be made.
JHipster Version(s)
8.11.0
Browsers and Operating System
Not important