Hibernate
Hibernate [Criteria Queries in Hibernate:http://today.java.net/pub/a/today/2004/07/19/Hibernate.html] James Elliot shows you how to use simple criteria and compound criteria, apply criteria to associations, and query by example using Hibernate, in this excerpt (in PDF format) from Hibernate: A Developer’s Notebook. http://www.oreilly.com/catalog/hibernate/