-->
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: the problem about primitive type in hql in hibernate 3.1
PostPosted: Thu Feb 23, 2006 3:16 pm 
Newbie

Joined: Thu Feb 23, 2006 3:08 pm
Posts: 1
enviroment:
hb3.1,spring 1.2.6 ,mssql 2k,weblogic 8.1,win2k

question:

in the hql query exists "and b.stepId=:stepId",and "b.stepId" is long primitive type。
I writed the code:
Code:


baseService.findByNamedParam(queryStr, new String[] { "stepId" }, new Object[] { new Long(stepDesc.getId()) });



the console error :java.sql.SQlException:Parameter #1 has not been set。

and it hasn't any problem in hb3.0.5+spring 1.2.5。

if design "b.stepId" to Long ,it hasn't any problem .

thanks


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.