Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate and related patterns

 
Maris Orbidans
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you discussed hibernate design patterns, for example, OpenSessionInView in your book ?
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Design patterns and best practices are a running thread throughout the book.

The book develops a few simple JSP/Servlet examples, just to demonstrate how Hibernate might be used in a web based application, be it Struts, JSF, Seam, or any other Java framework. In one of the examples, we use an open session in view pattern to avoid any LazyLoadingException objects from being thrown. It's an important strategy for developing web based applications with Hibernate.

-Cameron McKenzie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic