---
title: "[Hibernate 3] bug about string \"call\""
author: "SilverRing"
date: "2009-09-01T18:56:16Z"
tags: ["Hibernate", "Java", "OpenSource"]
slug: "hibernate-3-bug-about-string-call"
draft: false
lastmod: "2009-09-01T18:56:16Z"
id: 460278
url: "https://silverring.iteye.com/blog/460278"
---

Once there's a string "call" involved in an hql, hibernate will throw an exception like the one below:

HibernateSystemException: ordinal parameter mismatch

This is an open bug reported here:

http://opensource.atlassian.com/projects/hibernate/browse/HHH-1423

A simple workaround is to make the 'call' variable the first in the query

before:


```java

from Ship s where s.name = ? and s.callsign = ?

```


after


```java

 from Ship s where s.callsign = ? and s.name = ?

```