Home > Articles > Programming > Java

Mapping UML Class Diagrams to CMP Entity Beans

  • Print
  • + Share This
The Enterprise JavaBeans 2.0 specification defines three types of JavaBeans: session, entity, and message-driven. Of the three, entity beans are used to model business data. Gail and Paul Anderson describe in this article how a UML class diagram can accurately model business data. They also discuss how to map a class diagram to entity beans with Container-Managed Persistence (CMP) and Container-Managed Relationships (CMR).
Like this article? We recommend

What Is UML?

The Unified Modeling Language (UML) is an industry-standard notation for describing and analyzing object-oriented systems. UML is independent of the process that you use to design and build systems. Its main advantage is that with a standard notation, you can describe your system to a wide audience and obtain a consistent understanding.

UML consists of a set of diagrams that communicate a view of a system. For example, a class diagram describes objects within a system and their relationships to other objects. A use case diagram describes the functionality of a system—how someone uses the system. An activity diagram describes the steps that are required to do something: complete a use case, deploy an application, or make broccoli and garlic penne, for example. Although UML has a rich set of diagrams, we will use only class diagrams for this discussion.

  • + Share This
  • 🔖 Save To Your Account