Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiYjE1M2Qz...
) / Improvement (
https://hibernate.atlassian.net/browse/HSEARCH-4895?atlOrigin=eyJpIjoiYjE...
) HSEARCH-4895 (
https://hibernate.atlassian.net/browse/HSEARCH-4895?atlOrigin=eyJpIjoiYjE...
) `.id()` projection / `@IdProjection` within object fields (
https://hibernate.atlassian.net/browse/HSEARCH-4895?atlOrigin=eyJpIjoiYjE...
)
Issue Type: Improvement Assignee: Unassigned Created: 05/Jul/2023 01:24 AM Priority: Major
Reporter: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Currently this mapping will fail:
public record BookProjection(@IdProjection id, @ObjectProjection AuthorDTO author) {};
public record BookProjection(@IdProjection id, @FieldProjection name) {};
… because the @IdProjection is not allowed within an object projection.
That makes sense, because @IdProjection is about the root document ID. But it’s not very
intuitive.
Maybe we could extend the ID projection to allow referring to object IDs as well?
(
https://hibernate.atlassian.net/browse/HSEARCH-4895#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-4895#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100229- sha1:634ba05 )