-->
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: Flatten multirow result with HQL Function?
PostPosted: Mon Jan 29, 2007 9:46 am 
Beginner
Beginner

Joined: Thu Apr 07, 2005 5:12 pm
Posts: 27
Location: Hamburg
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1.2

Mapping documents:
It's no error and think the problem is clear.


Hello,

within the context of an reporting engine, I need a function, that builds one String from a list of strings returned by property / subselect.

For a example an object "a" has a collection mapped property "string" and a simple property called "name". Then I have to create sth. like:

select o.name, flatten(o.strings) from Object o;

Is there an interface to extends HQL with own functions, if there is no build in possibility I didn't see?

Otherwise I'd think of writing a stored procedure ni PLSQL, but then I have to find out dynamically how this collection is mapped, and what's the key and so on.

Any hints to an approach are welcome.

Thank you.


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.