Uploaded image for project: 'Hibernate ORM'
  1. HHH-12685

java.lang.ClassCastException when checking if parameter isBound in criteria query

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      We are using the criteria query api to add parameters and when we try to use the isBound method to check if the parameter has been set previously Hibernate crashes with the following stack trace:

      aused by: java.lang.ClassCastException: org.hibernate.query.criteria.internal.compile.ExplicitParameterInfo cannot be cast to org.hibernate.query.QueryParameter
      	at org.hibernate.query.internal.AbstractProducedQuery.isBound(AbstractProducedQuery.java:750)
      	at org.hibernate.query.criteria.internal.compile.CriteriaQueryTypeQueryAdapter.isBound(CriteriaQueryTypeQueryAdapter.java:335)
      	at com.synekus.core.db.CrudService.loadCompanyParamIfPresent(CrudService.kt:162)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: