HHH-1084
git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@8460 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
451c3ce342
commit
be1794052a
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue