Susan Harkins (223) [Avatar] Offline
#1
Please share errors in the published version of Java Persistence with Hibernate, Second Edition here. We'll compile and publish a comprehensive list for everyone's convenience. Thank you!

Susan Harkins
Errata Editor
251631 (2) [Avatar] Offline
#2
Small typo.

Page 24, section 2.2.3, the outlined text "PATH: /examples/src/est/java/org/jpwh/helloworld/HelloWorldJPA.java"
Should be "PATH: /examples/src/test/java/org/jpwh/helloworld/HelloWorldJPA.java"
380366 (1) [Avatar] Offline
#3
Page 21
[ 412 KB ]
Page 22
[ 203 KB ]
Page 21's XML is annotated with points; point #7 appears as a capital H (as opposed to the expected 7, white foreground Ina black circle) on page 22.

This, in the PDF version.
Gilberto Toscano (1) [Avatar] Offline
#4
Page 22
In Page 22 where the HelloWorld class code is shown, the explanatory text indicates "The class also has a (default) constructor with no parameters"; however there is no constructor in the class.
333150 (4) [Avatar] Offline
#5
Page 22
Gilberto Toscano wrote:In Page 22 where the HelloWorld class code is shown, the explanatory text indicates "The class also has a (default) constructor with no parameters"; however there is no constructor in the class.


*****This is not an error*****

You do not need to specify a default constructor. It is provided by the compiler by "default".
In case, you write a parametrised constructor, then you "must" provide a default constructor.