git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@8460 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Christian Bauer 2005-10-26 10:31:35 +00:00
parent 451c3ce342
commit be1794052a
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ List cats = crit.list();]]></programlisting>
</para>
<programlisting><![CDATA[List cats = sess.createCriteria(Cat.class)
.add( Restrictions.sql("lower({alias}.name) like lower(?)", "Fritz%", Hibernate.STRING) )
.add( Restrictions.sqlRestriction("lower({alias}.name) like lower(?)", "Fritz%", Hibernate.STRING) )
.list();]]></programlisting>
<para>