Hi Folks,
Example class looks pretty clever to create a query with maximum restrictions e.g:
Code:
Foo foo = ...;
Session session = getSession();
Criteria critera = session.createCriteria(Foo.class);
critera.add(Example.create(foo).enableLike());      
  Will the 
enableLike() work also on component objects
e.g
Code:
public class Foo {
    /**
      * Imagine this a property ;)
      *
      * @hibernate.component 
      */
    private Bar bar;
}
public class Bar {
    /**
      * Imagine this a property ;)
      *
      * @hibernate.propery
      */
    private String name;
}
  
... so that 
enableLike()  attches the like to the WHERE clause of name propery or do I have to nest the criteria for this?
Thx
Toby