@SqlResultSetMapping doesn’t work with @Inheritance(strategy = InheritanceType.JOINED)

Description

On our project we have entity with inheritance using join. After migration from hibernate 5 to 6 @SqlResultSetMapping doesn't work.

Exception is following:

Code of CaseStatementDiscriminatorMappingImpl.class looks suspicious:

Test example to reproduce:

Reproducible on 6.1.7.Final and 6.2.7.Final.

Attachments

1

Activity

Show:
Fixed

Details

Assignee

Reporter

Worked in

Components

Sprint

Fix versions

Affects versions

Priority

Created August 17, 2023 at 11:18 AM
Updated November 23, 2023 at 1:53 PM
Resolved November 10, 2023 at 5:50 PM