Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Tarun wadhwa
Greenhorn
Posts: 14
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36462
460
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give an example? Conditionals with if/else are rarely the correct solution in a query.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!