Verify multiple loading with the DefaultProjectionHitMapper on the same query instance

Description

Trying to execute the same query instance, it seems that it carries some state from the previous executions.

We have probably to inspect the DefaultProjectionHitMapper behavior.
Probably it needs to be stateless or we need to change the method *.loading.context.spi.LoadingContext#getProjectionHitMapper into createProjectionHitMapper.

We need a test case for it maybe on *.mapper.orm.search.loading.AbstractSearchQueryEntityLoadingIT.

Having that working will allow us to reuse (to cache) the query instances within the same thread.

Environment

None

Assignee

Fabio Massimo Ercoli

Reporter

Fabio Massimo Ercoli

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Fix versions

Affects versions

Priority

Major
Configure