org.hibernate.HibernateException: ordinal parameter mismatch

Hibernate JIRA | Marc Lustig | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. org.hibernate.HibernateException

      ordinal parameter mismatch

      at org.hibernate.engine.query.HQLQueryPlan.buildParameterMetadata()
    2. Hibernate
      AbstractSessionImpl.createQuery
      1. org.hibernate.engine.query.HQLQueryPlan.buildParameterMetadata(HQLQueryPlan.java:214)
      2. org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:94)
      3. org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:53)
      4. org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
      5. org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:108)
      6. org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:88)
      6 frames