O'Reilly logo

Hibernate: A J2EE™ Developer's Guide by Will Iverson

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

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