-->
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: Is this kind of query supported?
PostPosted: Tue Mar 08, 2005 10:30 am 
Newbie

Joined: Fri Dec 10, 2004 8:58 am
Posts: 8
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.1.7

I have the following segment of HQL:

e.area in (:areas)

The parameter :areas is a collection of entities.

But the query generated by Hibernate for the segment above is:

((escopo0_.OID_AREA in(?))

I can't find any hint to how can I make this work using pure HQL. I saw that the Criteria API contains a construct for this kind of query, but in my case it wouldn't be the right choice.

Is this kind of thing possible?

Thanks in Advance,
Eduardo Leite

Ps: Hibernate Rocks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 08, 2005 10:34 am 
Newbie

Joined: Fri Dec 10, 2004 8:58 am
Posts: 8
i found the answer... shame on me... :)

I did not see the method setParameterList of the Query interface.


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.