[hibernate-issues] [Hibernate-JIRA] Assigned: (HHH-2714) Three typos in code examples

Diego Pires Plentz (JIRA) noreply at atlassian.com
Fri Jul 13 00:01:53 EDT 2007


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

Diego Pires Plentz reassigned HHH-2714:
---------------------------------------

    Assignee: Diego Pires Plentz

> Three typos in code examples
> ----------------------------
>
>                 Key: HHH-2714
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2714
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: documentation
>    Affects Versions: 3.2.4.sp1
>            Reporter: Jan Hustak
>            Assignee: Diego Pires Plentz
>            Priority: Trivial
>         Attachments: hibernate-docs.patch
>
>
> I have found a few apparent typos in code examples in the documentation:
> - in section 6.3.2. "Bidirectional associations":
>     <class name="Item">
>       <id name="id" column="CATEGORY_ID"/>
>   should probably be
>     <class name="Item">
>       <id name="id" column="ITEM_ID"/>
> - in section 10.4.1.2 "Queries that return tuples":
>     Object[] tuple = (Object[]) kittensAndMothers.next();
>     Cat kitten  = tuple[0];
>     Cat mother  = tuple[1];
>   should probably be
>     Object[] tuple = (Object[]) kittensAndMothers.next();
>     Cat kitten = (Cat) tuple[0];
>     Cat mother = (Cat) tuple[1];
> - in section 11.3.2 "Application version checking":
>     if ( oldVersion!=foo.getVersion ) throw new StaleObjectStateException();
>   should probably be
>     if ( oldVersion != foo.getVersion() ) throw new StaleObjectStateException();
> I've attached a patch that takes care of these; it was done against CVS earlier today.

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