Hibernate Criteria Query API

http://www.hibernate.org/

import org.hibernate.criterion.Criterion; ...
List cats = sess.createCriteria(Cat.class)
    .add( Restrictions.like("name", "Fritz%") )
    .add( Restrictions.between
            ("weight", minWeight, maxWeight) )
    .list();



Johannes Waldmann 2011-07-07