• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Advance Search !!

 
Praveen Kumar
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
 
Stevi Deter
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