-->
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.  [ 3 posts ] 
Author Message
 Post subject: String concatenation in select redux
PostPosted: Mon Nov 22, 2004 6:09 pm 
Newbie

Joined: Mon Nov 22, 2004 5:55 pm
Posts: 5
Last August 2003 someone asked a question about using string concatenation in a select statement. Effectively, was there an equivalent HQL statement to the SQL statement

Code:
select last_name || ', ' || first_name from users


One of the developer team said that it was in the queue. Has there been any update? If so, could someone provide an example? It would be especially helpful to see a HQL version and a Criteria version.

The book mentions how to use string concatenation in where clauses (section 7.2.6) but not in selects. FWIW, I'm using:

Hibernate version: version 2.1.6, 9.8.2004

Name and version of the database you are using: Oracle 8i

Thanks,
Alex


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 22, 2004 7:26 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Is there a concat function in oracle? If yes, you can do something like "select concat(a.name, a.firstname) from Person a"


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 22, 2004 7:48 pm 
Newbie

Joined: Mon Nov 22, 2004 5:55 pm
Posts: 5
I'm guessing your response means that string concat select hasn't made it in the codebase, yet. :) I'll go down the oracle function path, then. Thanks!

Alex


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.