O'Reilly logo

Enterprise Java Programming with IBM WebSphere by Daniel Berg, Greg Hester, Mark Weitzel, Gary Craig, David Pitt, Jim Amsden, Kyle Brown, Russell Stinehour, Peter M. Jakab

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required