-->
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.  [ 3 posts ] 
Author Message
 Post subject: List as query parameter.
PostPosted: Thu Mar 25, 2004 3:35 am 
Beginner
Beginner

Joined: Wed Nov 19, 2003 3:08 pm
Posts: 20
Hi folks!

Can i use List as parameter of query?
I tried following, but can't get it to work..

find("from Test as t where t.key in (?)", list)

Artsi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 4:07 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Query.setParameterList()


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 25, 2004 4:31 am 
Beginner
Beginner

Joined: Wed Nov 19, 2003 3:08 pm
Posts: 20
yes..

I use springframework's HibernateTemplate, and there wasn't that kind a method, so i didn't notice that.. My mistace.

Thanks gavin!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.