[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1081) missing parens in example code for Criteria Associations

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:39 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-1081.
-------------------------------


Closing stale resolved issues

> missing parens in example code for Criteria Associations
> --------------------------------------------------------
>
>                 Key: HHH-1081
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1081
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 3.1 rc3
>            Reporter: Walter Gillett
>            Priority: Trivial
>             Fix For: 3.1 rc3
>
>
> On http://www.hibernate.org/hib_docs/v3/reference/en/html/querycriteria.html#querycriteria-associations there is the following example code:
>   List cats = sess.createCriteria(Cat.class)
>     .add( Restrictions.like("name", "F%")
>     .createCriteria("kittens")
>         .add( Restrictions.like("name", "F%")
>     .list();
> On trying to copy/paste this code I realized that the ".add" lines above (2nd and 4th lines) need another right parenthesis at the end of the line.

-- 
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