| 
					
						 When querying for orders, the collection returned is a collection of customers, even though when the criteria is created it it is told that we want Orders.
 
 This worked under hibernate 2, and stopped working after upgrading.
 
 Example exampleOrd = Example.create(ord).excludeZeroes().enableLike(MatchMode.ANYWHERE)..ignoreCase();
 Example exampleCust = exampleCust = Example.create(cust).excludeZeroes().enableLike(MatchMode.ANYWHERE).ignoreCase();
 
 Criteria x = session.createCriteria(Order.class);
 x.add(exampleOrd);
 x.createCriteria("customer").add(exampleCust);
 
 List<Order> orders = x.list();
 
 This returns a List<Customer> when it should return a List<Order>. If I remove the example customer from the criteria, it returns a List<Order> as it should.. 
					
  
						
					 |