-
Notifications
You must be signed in to change notification settings - Fork 678
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
Provide class for inspecting nested projections. #2420
Provide class for inspecting nested projections. #2420
Conversation
cf8807d
to
08ac9d0
Compare
Isn't a |
This is the problem with partially extracted and outdated documented things ( |
…aph. When a property path based projection is specified we still return the root entity. But we do provide a fetchgraph. The JPA implementation will (should) load only the specified attributes eagerly. It most likely will also load all other attributes from all selected tables. Once we have infrastructure in place for for multilevel projections the same approach can and should be used for those. Currently this is not the case. Closes #2329 See spring-projects/spring-data-commons#2420
…aph. When a property path based projection is specified we still return the root entity. But we do provide a fetchgraph. The JPA implementation will (should) load only the specified attributes eagerly. It most likely will also load all other attributes from all selected tables. Once we have infrastructure in place for for multilevel projections the same approach can and should be used for those. Currently this is not the case. See #2329 See spring-projects/spring-data-commons#2420
Original Pull Request: #2420
Original Pull Request: #2420
Original Pull Request: #2420
Original Pull Request: #2420
Original Pull Request: #2420
Original Pull Request: #2420
Replace boolean flag with enum, assert open vs. closed projection and update javadoc. Original Pull Request: #2420
Thanks @meistermeier! Now available on main now. |
As a result there will be a
Map<PropertyPath, Boolean>
, indicating if the property path "ends" in an entity or not, that can get used as input for a selection/mapping filter in the dedicated store modules.Maybe it might makes sense to wrap the
Map<PropertyPath, Boolean>
into an own class. For us it is sufficient right now to use the map.