Skip to Main Content
Enterprise JavaBeans 3.1, 6th Edition
book

Enterprise JavaBeans 3.1, 6th Edition

by Andrew Lee Rubinger, Bill Burke
September 2010
Intermediate to advanced content levelIntermediate to advanced
766 pages
18h 35m
English
O'Reilly Media, Inc.
Content preview from Enterprise JavaBeans 3.1, 6th Edition

Part III. EJB and Persistence

By now we’ve explored the various actions we can take within server-side component models. Of course, actions are nothing unless performed by some thing, and in EJB we address the nouns of our application via entity beans.

An entity is EJB’s integration point with Java Persistence, a simple POJO that maps to an underlying relational database. By this mechanism, we’re free to deal with objects as we’re most comfortable—in Java—and we leave it to the container to translate simple method invocations to the appropriate SQL queries.

Additionally, we can form complex relationships between entity types, allowing us to form an object graph view of a database schema. The focus of entities is again on the ease-of-use provided to us as application developers, and under the hood the container may perform optimizations to keep things running efficiently.

These next chapters detail Java Persistence as it pertains to Enterprise Java Beans.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
JavaServer Faces

JavaServer Faces

Hans Bergsten
EJB 3 Developer Guide

EJB 3 Developer Guide

Michael Sikora

Publisher Resources

ISBN: 9781449399139Errata Page