Class Example

java.lang.Object
org.hibernate.criterion.Example
All Implemented Interfaces:
Serializable, Criterion

public class Example extends Object implements Criterion
Support for query by example.
 List results = session.createCriteria(Parent.class)
     .add( Example.create(parent).ignoreCase() )
     .createCriteria("child")
         .add( Example.create( parent.getChild() ) )
     .list();
 
"Examples" may be mixed and matched with "Expressions" in the same Criteria.
See Also: