-->
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: Projections.sqlProjection() in Criteria???
PostPosted: Wed Feb 22, 2006 3:01 am 
Newbie

Joined: Wed Feb 01, 2006 12:45 pm
Posts: 18
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:

3.0


Code between sessionFactory.openSession() and session.close():


I am using HQL with nvl(). Since nvl() is not supported in hibernate
projections.I planned to write the SQL directly using
Projections.sqlProjection(). This is my query :-


private static final String SEARCH_BOOKS_DESC_DATE="from CertBooksTrnsDTO certBooksTrns WHERE certBooksTrns.certBooks.cbBookNo=? ORDER BY nvl(certBooksTrns.cbtUpdateDt,'01-jan-2006') DESC ";


How to use it with Projections.sqlProjection() with Criteria???


I will be waiting for ur reply...




Thanks,

HibernateCrazyLoverr



















Name and version of the database you are using
Oracle 8.0

:


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.