These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: org.hibernate.HibernateException: ordinal parameter mismatch
PostPosted: Tue May 11, 2010 2:26 am 
Newbie

Joined: Wed Jun 24, 2009 3:04 am
Posts: 2
Dear All,
Im getting the above error when trying to execute the following HQL
Code:
hql= from IDLECustomers where trim(upper(clientCity))=? and statusId=? and callDate <?
Query q = sessionFactory.getCurrentSession().createQuery(hql);
       q.setString(0, city.trim().toUpperCase());
       q.setLong(1, statusId);
       q.setDate(2, new Date());

Im using oracle10g as my db
clientCity is a String field which maps to varchar2 in db
statusId is a long field which maps to number in db
callDate is a java.sql.date field which maps the DATE in db

Do u guys have any idea about this issue?
Thanks

Pathum


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.