Chapter 12. Object-Relational Mapping and Java Data Objects

The major premise of this book is that when we design an application in Java, we often find that we need to rely on a relational database in order to store our data. In fact, the majority of business applications are nothing more than a user interface for maintaining data stored in a database.

Throughout this book, we've explored a number of approaches to the problem of using data in the object-oriented environment of Java that we retrieve and store in a relational database.

At one end of the spectrum of approaches is direct database access from Java classes, where we embed relational queries using SQL in our Java code, and map the data to Java objects on an ad-hoc basis (or consume ...

Get Java™ Oracle® Database Development 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.