From: Christian B. (JIRA) <no...@at...> - 2006-07-21 06:42:15
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1906?page=all ] Christian Bauer resolved HHH-1906: ---------------------------------- Resolution: Won't Fix 1. That is why the tutorial includes that statement just before the code snippet: "you might have to modify some of the previous methods to return that identifier" 2. The included tutorial source code includes this modified code ready for copy/paste. 3. The missing } has been fixed. > Incorrect code in Hibernate 3.1.1 Reference PDF > ----------------------------------------------- > > Key: HHH-1906 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1906 > Project: Hibernate3 > Type: Bug > Components: documentation > Versions: 3.1.1, 3.1.2, 3.1.3 > Environment: N/A > Reporter: Jack C. Holt > > > the last code snippet in section 1.3.3 on page 13 shows the following code: > Long eventId = mgr.createAndStoreEvent("My Event", new Date()); > Long personId = mgr.createAndStorePerson("Foo", "Bar"); > Both methods are defined as returning void, not Long. Therefore, the code causes a compiler error. > The code snippet is also missing a closing "}". -- 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 |