-->
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: using select case statement independently in hql queries
PostPosted: Mon Apr 13, 2009 3:13 am 
Newbie

Joined: Tue Mar 03, 2009 6:47 am
Posts: 3
Hi all,

I have a web application thats output is dependent on sql queries. currently the application is tightly bound with oracle database.
We are required to make the appl. db independent, so we are opted hibernate, because it gives a user to write hqls.
Currently the existing application is using the select case ... then ... end stmts.
So my question is, can i use "case" stmt in hql select queries, even if the underlying database (say mysql) does not provide the case feature straight forward. Or there is some internal handling of case in hibernate itself, even if the underlying db has no support for case.

Waiting for your reply.
Thanks in advance
Debojit


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 13, 2009 5:27 am 
Beginner
Beginner

Joined: Wed Sep 21, 2005 8:18 am
Posts: 31
Dont use database specific sql in hql. hibernate will not handle it if database does not support a particular one

_________________
amer sohail


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.