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? |
|