[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1084) incorrect method name "sql" in Restrictions example, should be "sqlRestriction"
Steve Ebersole (JIRA)
noreply at atlassian.com
Mon Mar 21 13:01:00 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list