org.hibernate.HibernateException: ordinal parameter mismatch

Hibernate JIRA | Marc Lustig | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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