Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Hibernate How to use AND OR operator in hibernate Detached criteria query?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


ratna rathor
How to use AND OR operator in hibernate Detached criteria query?
1 Answer(s)      2 years and 5 months ago
Posted in : Hibernate


How to use AND OR operator in hibernate Detached criteria query?


Advertisement
View Answers

June 1, 2012 at 5:46 PM


You can use AND, OR operator in hibernate detachedCriteria through Restrictions.conjunction() and Restrictions.disjunction(). Detached Criteria query is a facility provide by Hibernate to write criteria queries in ?detached mode?, where hibernate session is not available. You can instantiate this class anywhere.

Click here for AND operator example.

Click here for OR operator example.



Related Tutorials/Questions & Answers:
 

 

 

DMCA.com