Mirgration from “Hibernate 5.6.15” to “Hibernate 6.2.1.Final” caused "java.lang.object not superclass of jakarta.persistence.tuple"

After migration from “Hibernate 5.6.15” to “Hibernate 6.2.1.Final” we started receiving errors while fetching items from the database using criteriaBuilder.createQuery(Tuple.class) (Tuple is imported from jakarta):

-”org.hibernate.internal.util.beans.BeanIntrospectionException: Unable to determine bean info from class [jakarta.persistence.Tuple]”

-”java.lang.object not superclass of jakarta.persistence.tuple”

The error persists in all 6.x.x. versions.

Please create an issue in the issue tracker(https://hibernate.atlassian.net) with a test case(hibernate-test-case-templates/JPAUnitTestCase.java at main · hibernate/hibernate-test-case-templates · GitHub) that reproduces the issue.