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

DTO projection properties mapping to associations are not propulated #3104

Closed
mp911de opened this issue Jun 10, 2024 · 0 comments
Closed

DTO projection properties mapping to associations are not propulated #3104

mp911de opened this issue Jun 10, 2024 · 0 comments
Assignees
Labels
type: bug A general bug

Comments

@mp911de
Copy link
Member

mp911de commented Jun 10, 2024

When a DTO property is considered an association, then DtoInstantiatingConverter does not copy these properties using property population.

Typically, associations are discovered from annotations on the entity-side so it is uncommon to identify a DTO property as association unless associations derive from the target type such as AggregateReference in Spring Data JDBC.

See also spring-projects/spring-data-relational#1759.

@mp911de mp911de added the type: bug A general bug label Jun 10, 2024
@mp911de mp911de added this to the 3.2.7 (2023.1.7) milestone Jun 10, 2024
mp911de added a commit that referenced this issue Jun 10, 2024
We now populate DTO properties whose are identified as associations. While uncommon, as typically entities declare assocations using entities, associations can be identified as types and so these are now considered when populating properties.

Closes #3104
mp911de added a commit that referenced this issue Jun 10, 2024
We now populate DTO properties whose are identified as associations. While uncommon, as typically entities declare assocations using entities, associations can be identified as types and so these are now considered when populating properties.

Closes #3104
@mp911de mp911de self-assigned this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant