i want to search with name,email,id based on that suppose if they enter id then i need to serch with name or if they enter email i need to serch with mail or i want to serch with these 3 fields.
so pls give a suggesion for best search query in hibernate or sql.

Recommended Answers

For hibernate you have a lot of examples here: http://hiddensciencex.blogspot.rs/2013/04/is2-hql-upiti-i-kriterijumi.html
But in order to help you more please write some code you already created.
Regards, Mike.

Jump to Post

All 2 Replies

seems as if some simple conditional statements can solve this for you.
What do you have so far?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.