-->
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: listagg usable in named query?
PostPosted: Wed Sep 12, 2012 10:14 am 
Newbie

Joined: Wed Sep 12, 2012 10:08 am
Posts: 2
Location: Amsterdam
Hi.

I have a named query in which I would like to use the Oracle function 'listagg'. Is this at all possible?
When I start up my application I get the following exception:

org.hibernate.QueryException: BY expected after GROUP or ORDER: ( [
select listagg(pwm.socialSecurityNumber,';') within group (order by pwm.socialSecurityNumber), etc...

I looks like it does not accept the fact that there's only 'within group' in the query. Any idea?

Regards,
ronald

----

using Hibernate 3.3.1.GA


Top
 Profile  
 
 Post subject: Re: listagg usable in named query?
PostPosted: Wed Sep 12, 2012 11:14 am 
Newbie

Joined: Wed Sep 12, 2012 10:08 am
Posts: 2
Location: Amsterdam
It does work when I use native sql. That is good to know but I wonder if it is also possible in a named query...


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.