Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Praise for the First Edition

Foreword to the First Edition

Preface

Acknowledgments

About this Book

About the Cover Illustration

1. Getting started with ORM

Chapter 1. Understanding object/relational persistence

1.1. What is persistence?

1.1.1. Relational databases

1.1.2. Understanding SQL

1.1.3. Using SQL in Java

1.2. The paradigm mismatch

1.2.1. The problem of granularity

1.2.2. The problem of subtypes

1.2.3. The problem of identity

1.2.4. Problems relating to associations

1.2.5. The problem of data navigation

1.3. ORM and JPA

1.4. Summary

Chapter 2. Starting a project

2.1. Introducing Hibernate

2.2. ���Hello World��� with JPA

2.2.1. Configuring a persistence unit

2.2.2. Writing a persistent class

2.2.3. Storing and loading messages

2.3. Native Hibernate configuration

2.4. Summary

Chapter 3. Domain models and metadata

3.1. The example CaveatEmptor application

3.1.1. A layered architecture

3.1.2. Analyzing the business domain

3.1.3. The CaveatEmptor domain model

3.2. Implementing the domain model

3.2.1. Addressing leakage of concerns

3.2.2. Transparent and automated persistence

3.2.3. Writing persistence-capable classes

3.2.4. Implementing POJO associations

3.3. Domain model metadata