-->
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.  [ 4 posts ] 
Author Message
 Post subject: specifying an SQL WHERE condition when mapping a collection
PostPosted: Mon Nov 29, 2004 8:03 am 
Newbie

Joined: Mon Nov 29, 2004 7:52 am
Posts: 1
I was wondering if it were possible to specify a runtime variable in the SQL where condition when mapping a collection. The document explains the usage of the <map> tag (6.2. Mapping a Collection), but I can't find anything on how to specify a variable in the actual where clause.

I really appreciate any help you can afford me.

Thanks

Shafiq


Top
 Profile  
 
 Post subject: Looking for something same
PostPosted: Fri Dec 24, 2004 5:23 am 
Newbie

Joined: Tue Dec 14, 2004 2:36 am
Posts: 4
Shafiq,
Would you able to do that? if yes, could you please share the solution?

_________________
Dheeraj Sambhar


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 7:07 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
AFAIK only pure SQL is suported for the where tag.

But you can load your collection with HQL which gives you nice named parameters.

HTH
Ernst


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 24, 2004 1:46 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Dynamic Filters in H3 does exactly that and more.


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