i am using Hibernate3 with JPA using spring.
When i search the annotated entity in normal case. It worked fine and showed sql query in the log, with following code:
but when i added ignorecase in the example, it did worked. Even i did not show SQL in the log.
list = this.getHibernateTemplate().findByExample(Example.create(iEntity));
Example example = Example.create(iEntity).ignoreCase().enableLike(MatchMode.EXACT);
list = this.getHibernateTemplate().findByExample(example);