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: HQL: Using wildcards In groups
PostPosted: Mon Apr 11, 2005 12:06 pm 
Newbie

Joined: Mon Apr 11, 2005 11:46 am
Posts: 1
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:2.1.7

Is it possible to add wildcards to variables in groups? something along the lines of:
from ObjImpl where obj_variable in (:VALUES).
But where obj_variable doesn't have to exactly match any of the :VALUES .

eg: if ---- obj_variable: er --- and ---- :VALUES: erMM,MMM,MMer --- the 1st and 3rd :VALUES would match obj_variable.

If this isn't possible (which I'm starting to believe it isn't) could anyone suggest an alternative (:VALUES is not of fixed length, so I can't have multiple 'like' statements unless the HQL is dynamically generated).


Thanks in advance,

Tom


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.