• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Advance Search !!  RSS feed

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have implemented simple search say searching one property/col of the table.

Now i want to do advance search say getting many inputs from the user that data may exist in one table or another table. Here i am facing problem how to genarate dynamic query .

Pls provide some inputs here

pls pls pls
 
Ranch Hand
Posts: 265
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Before we can give you any reasonable feedback, it would be helpful to know what framework you're using for your ORM implementation.

If you are using Hibernate, I'd recommend looking at Criteria queries. I've found them (specifically Example queries) to be useful in generating queries based on user inputs.
[ May 20, 2008: Message edited by: Stevi Deter ]
 
Praveen Kumar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

I thought of using hibernate Criteria only. Can i have code sniplet
to know detailly ?

I am also using the same page which you refered.
 
Praveen Kumar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

I thought of using hibernate Criteria only. Can i have code sniplet
to know detailly ?

I am also using the same page which you refered.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!