Chapter 6 Creating J2EE Applications for BEA WebLogic
If you have an existing database, you can reverse-engineer it and create a PDM, generate an Object-Oriented Model (OOM) from the PDM and generate the default O/R mapping, then convert the classes to EJBs.
For a new application, you can create a Class Diagram in an OOM, generate the PDM from the OOM and generate the default O/R mapping, then convert the classes to EJBs.
If you already have a database schema and an object model but they don't match, you can manually define the O/R mapping, then convert classes to EJBs.
The following diagrams show an example PDM and an OOM generated from it. The name of classes and attributes can be changed to respect Java naming conventions.
Copyright (C) 2006. Sybase Inc. All rights reserved. |