Hibernate Criteria - Query by Example implementation