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