Chapter 24. CMP Mapping Strategies and Mapping in WSAD
In Chapter 14, we described several different mapping patterns demonstrating how to write your own JDBC code to persist a domain model to a relational database. The problem with roll-your-own persistence is the large amount of code that you must update whenever the domain model or the relational database changes. This can become a maintenance nightmare and it discourages refactoring of the domain model.
Chapter 23 introduced container-managed entities which have the benefit of using container-managed transaction demarcation, built-in security support, and automatic JDBC code generation for finding and persisting container-managed entities. This provides more efficiency developing the application ...
Get Enterprise Java Programming with IBM WebSphere 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.