aspose file tools*
The moose likes Object Relational Mapping and the fly likes Hibernate (decode && null) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate (decode && null)" Watch "Hibernate (decode && null)" New topic
Author

Hibernate (decode && null)

Ramprasad Subburaman
Greenhorn

Joined: Dec 18, 2005
Posts: 19
does hibernate support "DECODE" function???

Also when a particular attribute has null value, I get an error when getting that row from the database.

Someone help me out...

Thanks in advance.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You can run any SQL query with Hibernate (so long as you use a createSQLQuery() method of Session) so yes. I don't think HQL supports it though.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate (decode && null)
 
Similar Threads
Can I Select column A OR column B ?
Need help - Lot of joins are slowing down my query
[Hibernate] Boolean mapping
Hibernate returning List with NULL values
URGENT HEELP NEED IN DECODE