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.

Activity

Show:

Yoann Rodière March 27, 2023 at 10:17 AM

Here’s a reproducer:

And the same on 5.6 (doesn’t fail):

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created March 27, 2023 at 10:12 AM
Updated March 31, 2023 at 1:51 AM
Resolved March 30, 2023 at 12:02 PM