title: I have expired problems with LikeExpression in hibernate(hibernate 3.5.5)
body: <p>Looks like it does not work with ignorCase. 
  The first assert returns true. Second - false. Any Ideas?</p>
  
  <pre><code>EntityManager entityManager = (EntityManager) applicationContext.getBean("entityManager");
  HibernateTemplate hibernateTemplate = entityManager.getHibernateTemplate();
  int size = hibernateTemplate.find("from Source where caption like '%Вход%'").size();
  System.out.println("By Query: " + size);
  assertTrue(size &gt; 0);
  
  DetachedCriteria detachedCriteria = DetachedCriteria.forClass(Source.class);
  detachedCriteria.add(Restrictions.like("caption", "Вход", MatchMode.ANYWHERE).ignoreCase());
  List list = hibernateTemplate.findByCriteria(detachedCriteria);
  System.out.println("By DC: " + list.size());
  assertTrue(list.size() &gt; 0);
  </code></pre>