Questions and Issues Chapters 3 and 4
Pg. 82, AlbumJpaRepository class code:
What is "... 49660 Server c2,3" ? Could not find it in the source code.
Pg. 86, Changing JPA Providers, 3rd paragraph, Line 2:
"... you need to add the following bean definition..." ? No <bean> definition follows. I looked in the persistenceContext.xml file and think that it might be <bean class="org.springframework.orm.jpa.support.persist enceAnnotationBeanPostProcessor"/>. Is this correct?
Pg. 87, Persisting the PixUser POJO, bottom of page:
Question - It says that the @Transient annotation causes the property not to be persisted. It shows the @Transient annotation applied to the PixUser.addAlbum method and relates that the method is a property. I am confused by this. How does @Transient applied to a method cause a property not to be persisted?
Pg. 93, How It Works, 4th paragraph, code:
...configLocations = ... I think this code comes from UserJpaRepositoryTest.java. The source code is not the same. The second array element does not match. Book = "com/wrox/beginspring/pix/dao/persistenceContext-Test.xml"; Source code = "persistenceContext-Test.xml". Is it as simple as the book including the entire path vs just the filename?
Pg. 106, Resolving View Names, pix-servlet.xml code, highlighted text:
<bean id="viewResolver"... />". id=viewResolver" is not in the source code. Is this a problem? Doesn't seem to be.
Pg.117 - 122, TryItOut Gathering User Feedback:
Everything works fine until you introduce an error condition. The redisplayed feedbackform.jsp page does not display any error messages at the top of the page. This happens because the error keys used in FeedbackFormController.class, FeedbackFormValidator.class [inner class], validate method [pg. 119 - 120] are not included in the /resources/labels.properties file.
Add the following:
#FeedbackForm
error.rating.required=error message to display.
error.email.required=error message to display.
error.email.format=error message to display.
This concept is unfortunately not explained until chapter 5.
That's it. Thank you for your help with these Issues/Questions. Hope I didn't forget anything. Hope it makes sense. Hope it helps.
Until next time.........
EverettG.
|