I'm new in Hibernate. I can't understand how Hibernate process ? in Restrictions.sqlRestriction()
method. For example, there is a sample from official guide:
List cats = sess.createCriteria(Cat.class)
.add( Restrictions.sqlRestriction("lower({alias}.name) like lower(?)", "Fritz%", Hibernate.STRING) )
.list();
Looks like it is a placeholder. Will Hibernate convert this statement in ...like lower(Fritz%)
SQL request?
If yes, then lower(Fritz%)
doesn't looks valid, correct?