]
Steve Ebersole closed HHH-1084.
-------------------------------
Closing stale resolved issues
incorrect method name "sql" in Restrictions example, should
be "sqlRestriction"
-------------------------------------------------------------------------------
Key: HHH-1084
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1084
Project: Hibernate Core
Issue Type: Bug
Components: documentation
Affects Versions: 3.0.5
Reporter: Walter Gillett
Fix For: 3.1 rc3
Section 16.2 of the documentation
(
http://www.hibernate.org/hib_docs/v3/reference/en/html/querycriteria.html) has this
example:
List cats = sess.createCriteria(Cat.class)
.add( Restrictions.sql("lower({alias}.name) like lower(?)",
"Fritz%", Hibernate.STRING) )
.list();
which doesn't compile, because instead of "Restrictions.sql" above, the
correct method call is "Restrictions.sqlRestriction".
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: