permaculture playing cards*
The moose likes Object Relational Mapping and the fly likes HQL query for multiple conditions met Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "HQL query for multiple conditions met" Watch "HQL query for multiple conditions met" New topic
Author

HQL query for multiple conditions met

Shinu Pil
Greenhorn

Joined: Sep 02, 2005
Posts: 9
Hi
i need to retrieve record from employee table with employeeName ="test" age ="25" date ="01-1-2012" whose all conditions met. here employee name,age ,date of joining comes from search functionality from jsp.(searchString1,searchString2,searchString3)
String searchCritiria1="employeeName"
String searchCritiria2="age"
String date="01-01-12"
this piece of query i tried for one condition met .it working fine,but i donot know HQLquery for the above conditions met



please help ..iam beginner in this
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7



[How To Ask Questions][Read before you PM me]
 
Consider Paul's rocket mass heater.
 
subject: HQL query for multiple conditions met
 
Similar Threads
Constructor Problem
ProjectionList hibernate Criteria
problem while inserting the record in db using mySQL
Need help with Mapping(Annotation) and Composition
Assigning values from ResultSet to objects