DevX have a good article on how to use Hibernate’s Criteria Query support for building queries with multiple (and variable) search fields. This is a useful feature for building queries for web pages where the number of columns being queried against can vary depending on the users input.