Chapter 7. Relationships

Object/relational mapping highlights the confusion arising from the fact that experts in the object-oriented world and the relational world use different concepts and terminology. For example, a Java developer may speak in terms of a collection and classes, whereas a database guru will talk of things in terms of foreign keys and joins. In this chapter, we'll try to explain and reconcile these terms.

The discussion in this chapter breaks the different types of relationships into a few basic categories.

  • Database Relationships: How relationships are viewed from a database perspective. Regardless of the type of relationship you choose, it will (obviously) be stored in the database somehow.

  • Java Collection Relationships: How groups ...

Get Hibernate: A J2EE™ Developer's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.