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

Jan Hustak (JIRA) noreply at atlassian.com
Tue Jul 10 07:53:52 EDT 2007


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