-->
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: How to Use Decode function in HQL
PostPosted: Fri Mar 18, 2005 9:12 am 
Newbie

Joined: Fri Mar 18, 2005 8:54 am
Posts: 4
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

I have created Reports in PDF by java using jdbc and oracle 9i.
for that I have written a sql containg decode funtion.

Now I have to do that using Hibernate 3.
Is there any function corresponding to decode function in SQL in Hibernate Query Language.

_________________
Ashish Nath Jha


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 12:16 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Look into the Dialects which have the Dialect specific db functions supported.
The answer is, in general, no its not supported. Looking at the Oracle dialect I can see, not suprisingly, it is not supported.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2005 11:39 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
decode function work in formula
Is is hard implement because decode return different result, but formula can help (maybe)


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.