SQM fails to resolve target type of association defined in mappersuperclass with generics
Description
This is a regression compared to Hibernate ORM 5.6.
I confirmed it affects 6.2.0.CR4, but it probably also affects 6.0 and 6.1.
Queries involving an association defined in a mappersuperclass with generics will fail, even though generics are correctly resolved and understood in the mapping phase. The exception:
The query:
The model:
I will provide a PR with a test case for both 5.6 and 6.2 in the comments.
This is a regression compared to Hibernate ORM 5.6.
I confirmed it affects 6.2.0.CR4, but it probably also affects 6.0 and 6.1.
Queries involving an association defined in a mappersuperclass with generics will fail, even though generics are correctly resolved and understood in the mapping phase. The exception:
The query:
The model:
I will provide a PR with a test case for both 5.6 and 6.2 in the comments.