Skip to content

PersistentPropertyPathFactory should use contextual property information. #2293

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

Closed
christophstrobl opened this issue Feb 4, 2021 · 0 comments
Assignees
Labels
type: enhancement A general enhancement

Comments

@christophstrobl
Copy link
Member

In oder to preserve contextual information the PersistentPropertyPathFactory should obtain EntityInformation for properties from the MappingContext via their PersistentProperty representation instead of plain TypeInformation as the former contains more information about the actual type and signatures.

Related to: spring-projects/spring-data-mongodb#2803

@christophstrobl christophstrobl self-assigned this Feb 4, 2021
@christophstrobl christophstrobl added the type: enhancement A general enhancement label Feb 4, 2021
@mp911de mp911de added this to the 2.5 M3 (2021.0.0) milestone Feb 16, 2021
christophstrobl added a commit to spring-projects/spring-data-mongodb that referenced this issue Jun 1, 2021
spring-projects/spring-data-commons#2293 changed how PersistentProperty paths get resolved and considers potentially registered converters for those, which made the path resolution fail in during the query mapping process.
This commit makes sure to capture the according exception and continue with the given user input.

Fixes: #3659
mp911de pushed a commit to spring-projects/spring-data-mongodb that referenced this issue Jun 18, 2021
spring-projects/spring-data-commons#2293 changed how PersistentProperty paths get resolved and considers potentially registered converters for those, which made the path resolution fail in during the query mapping process.
This commit makes sure to capture the according exception and continue with the given user input.

Fixes: #3659
Original pull request: #3661.
mp911de pushed a commit to spring-projects/spring-data-mongodb that referenced this issue Jun 18, 2021
spring-projects/spring-data-commons#2293 changed how PersistentProperty paths get resolved and considers potentially registered converters for those, which made the path resolution fail in during the query mapping process.
This commit makes sure to capture the according exception and continue with the given user input.

Fixes: #3659
Original pull request: #3661.
mp911de pushed a commit to spring-projects/spring-data-mongodb that referenced this issue Jun 18, 2021
spring-projects/spring-data-commons#2293 changed how PersistentProperty paths get resolved and considers potentially registered converters for those, which made the path resolution fail in during the query mapping process.
This commit makes sure to capture the according exception and continue with the given user input.

Fixes: #3659
Original pull request: #3661.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
2 participants