SemanticException caused by type check when comparing generic path to parameter expression

Description

With the following mapping:

Comparing the generic id expression of UserEntity to a parameter expression causes an error to be thrown. Here is an example of using the Criteria APIs to construct the problematic query:

And here is the stack trace of the error:

 

Originally reported in this forum post.

Activity

Show:

Marco Belladelli November 22, 2023 at 4:53 PM

Hibernate 6.3 won’t be supported at all after the 6.4.0 final release. We don’t have influence of what version Spring Boot decides to be compatible with, but I’m sure they’re going to update supporting 6.4 very soon as that will be the officially supported version.

You can find more info about our maintenance policy on our website.

smallbun November 22, 2023 at 11:05 AM

springboot3.2 is about to be released, which uses the hibernate6.3x version. spring data jpa is not adapted for 6.4x at present, so it will affect a large number of users.

Marco Belladelli November 22, 2023 at 9:01 AM

We don’t plan on actively backporting bugfixes to 6.3.x versions at the moment, but the final release of 6.4.0 should be imminent.

smallbun November 22, 2023 at 8:13 AM

Can the fix be done in version 6.3x?

Fixed

Details

Assignee

Reporter

Sprint

Fix versions

Affects versions

Priority

Created November 21, 2023 at 1:18 PM
Updated December 28, 2023 at 11:47 AM
Resolved November 22, 2023 at 9:01 AM