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
: