O'Reilly logo

Beginning Hibernate, Third Edition by Jeff Linwood, Dave Minter, Joseph B. Ottinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 3

image

Building a Simple Application

In this chapter, we’re going to create the shell of an application, which will allow us to demonstrate a number of concepts common for systems that use Hibernate. We’ll be covering:

  • Object model design, including relationships between objects
  • Operations that view and modify persisted data (inserts, reads, updates, and deletes)

Ordinarily we’d use a service layer to encapsulate some operations, and in fact we will be adding a service layer as we proceed, but at this point we want to see more of how to interact with Hibernate itself. The goal here is not to waste time with a sample application that is “one ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required