Make the .reference() and .object() projections type-safe in the Projection DSL

Description

Currently they are typed as SearchProjection<Object>, but they should really match the types R and O defined in org.hibernate.search.engine.search.dsl.query.SearchQueryResultDefinitionContext. For a org.hibernate.search.mapper.orm.hibernate.HibernateOrmSearchTarget, R would be PojoReference, and O would be the T parameter of HibernateOrmSearchTarget.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Fix versions

Priority

Major
Configure