• 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!