Skip to content

HHH-20253 Fix ClassCastException when using hibernate-enhance-maven-plugin plugin#11975

Open
WanderW wants to merge 1 commit intohibernate:6.6from
WanderW:fix_classcastexception_6.6
Open

HHH-20253 Fix ClassCastException when using hibernate-enhance-maven-plugin plugin#11975
WanderW wants to merge 1 commit intohibernate:6.6from
WanderW:fix_classcastexception_6.6

Conversation

@WanderW
Copy link

@WanderW WanderW commented Mar 13, 2026

This is a backport of the fix for HHH-20253 that was merged into main


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.



Please make sure that the following tasks are completed:
Tasks specific to HHH-20253 (Bug):

  • Add test reproducing the bug
  • Add entries as relevant to migration-guide.adoc OR check there are no breaking changes

https://hibernate.atlassian.net/browse/HHH-20253

@WanderW
Copy link
Author

WanderW commented Mar 13, 2026

Ah, I see somebody beat me to this, good work! Closing this one

@WanderW WanderW closed this Mar 13, 2026
@WanderW
Copy link
Author

WanderW commented Mar 19, 2026

Looks like I was mistaken and there is no backport to 6.6 yet. We'd really like this fix in 6.6, reopening this PR again.

@WanderW WanderW reopened this Mar 19, 2026
@mbellade
Copy link
Member

@WanderW we normally don't backport all upstream bug-fixes to the older 6.6 branch, though this fix looks quite innocuous so we might include it

public void tearDown(SessionFactoryScope scope) {
scope.inTransaction(
session -> {
session.createQuery( "delete from Item" ).executeUpdate();

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note test

Invoking
QueryProducerImplementor.createQuery
should be avoided because it has been deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants