• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

search utility using struts, hibernate

 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried searching the forum couldn't found the exact or similar solution. I have a search page (jsp) with free form text field, multi selection boxes and etc. I want to build a search utility class, which can be passed to hibernate layer (seperate from presentaion layer). I don't want to pass hardcoded query to hibernate layer rather want to pass some kind of "SearchQuery" object to hibernate layer, which in turn can fire a query to get the result back. Search paraameters are from different tables so not sure how to use Criteria interface with multiple tables/objects. Simple solution I could think of is; since i have actionform populated with selected search params, I can pass simple value object (java bean) to hibernate layer. Could anyone reply with examples? I am not an expert in hibernate so any help would be much appreciated.

Thanks,
reply
    Bookmark Topic Watch Topic
  • New Topic