Using search(...).select(...) drops the type of loading options and prevents their definition

Description

When using the implicit result type (load entities), one can use .loading( o -> ... ) at the end of the query definition, and the options will have the correct type.

For example:

However, when using .select(...), the type of options is lost due to technical details of the generics, and thus loading options can no longer be set.

For example:

We should adjust the generics to fix this, and obviously add a test.

Environment

None

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major
Configure