-->
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: Column Wildcard
PostPosted: Tue Jul 24, 2007 3:06 pm 
Newbie

Joined: Thu Jul 12, 2007 8:57 am
Posts: 11
I have the following HQL query
FROM Project as p where p.description like '%SEARCH_TERM%'
I would like to search all the columns, not just description, something like
FROM Project as p where p.* like '%SEARCH_TERM%'

I'm unsure of the syntax I should use for this. Is there any wildcard character to search every column of a table so that I can simultanously apply a WHERE to every attribute of an object?

Thanks


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.