aspose file tools*
The moose likes Object Relational Mapping and the fly likes How To Add Some IF/Else or Case Checks in Hibernate Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "How To Add Some IF/Else or Case Checks in Hibernate Query" Watch "How To Add Some IF/Else or Case Checks in Hibernate Query" New topic
Author

How To Add Some IF/Else or Case Checks in Hibernate Query

Tarun wadhwa
Greenhorn

Joined: Jan 29, 2011
Posts: 14

I Want to write some query in which i have to fetch data from different tables and i have some check to be implemented
As in programming we have IF ELSE conditional checks to alter the flow similarly i want to put some checks in Hibernate
Query Language so i hope some on will Guide Me ASAP


"The More you Play With it, The more you will learn ". "Keep Playing"
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30913
    
158

Can you give an example? Conditionals with if/else are rarely the correct solution in a query.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How To Add Some IF/Else or Case Checks in Hibernate Query