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 ...

Get Beginning Hibernate, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.