Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMjVjZWVk...
) / Improvement (
https://hibernate.atlassian.net/browse/HSEARCH-4895?atlOrigin=eyJpIjoiMjV...
) HSEARCH-4895 (
https://hibernate.atlassian.net/browse/HSEARCH-4895?atlOrigin=eyJpIjoiMjV...
) `.id()` projection / `@IdProjection` within object fields (
https://hibernate.atlassian.net/browse/HSEARCH-4895?atlOrigin=eyJpIjoiMjV...
)
Change By: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Currently this mapping will fail:
{noformat}public record BookProjection BookDTO (@IdProjection id, @ObjectProjection
AuthorDTO author) {};
public record BookProjection AuthorDTO (@IdProjection id, @FieldProjection name)
{};{noformat}
… 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 )