-->
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: SQL to HQL query
PostPosted: Wed Jan 28, 2009 10:14 pm 
Newbie

Joined: Wed Jan 28, 2009 10:04 pm
Posts: 1
Can somebody help me with this, I can't construct a grouping concatenation (using GROUP_CONCAT) of rows of a db table in HQL.

table:pattern
columns:p_id,id(referenced to another table's id),seq, words

SELECT GROUP_CONCAT(words ORDER BY p_id,seq ASC SEPARATOR ' ') FROM pattern GROUP BY id,p_id;

thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 31, 2009 8:11 pm 
Newbie

Joined: Fri Jan 02, 2009 4:26 pm
Posts: 5
Specific vendor function implementation; Use a native query and a sql result set mapping if need.


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.