11. Enterprise JavaBeans and Persistence

A key requirement of Enterprise components is to persist or access data stored in relational databases. The new Java Persistence API (JPA) provides a powerful, standard object-relational mapping facility usable by any component in the Java Platform, Enterprise Edition. Entity objects are plain Java objects that can be used in detached modes as well, obviating the need for patterns such as Data Transfer Objects. Many object-oriented language features, such as inheritance and polymorphism, are supported by the mapping, resulting in more readable and maintainable domain object models. The JPA includes support for several advanced features that are particularly appropriate in an Enterprise setting, such as ...

Get Implementing SOA Using Java™ EE now with O’Reilly online learning.

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