-->
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.  [ 2 posts ] 
Author Message
 Post subject: could not locate named parameter
PostPosted: Tue Aug 22, 2006 3:35 am 
Newbie

Joined: Wed Apr 27, 2005 5:03 am
Posts: 10
I am getting following exception on execution of the HQL query

could not locate named parameter [addID]


int addID=6;
Query query = session.createQuery("from Address as address where address.id = :addID");
query.setParameter("addID", id);
planList = query.list();

Please help me find of the cause of the problm

regards,
ivin


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 22, 2006 6:46 am 
Newbie

Joined: Tue Aug 22, 2006 6:12 am
Posts: 5
Hi!

Use query.setInteger("addID", id) instead!

Regards,

Udo


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

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.