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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.