Modeling Entity Bean Relationships

Entity beans may require other Java classes such as JavaBeans to fulfill their responsibilities and may interact with other J2EE technologies such as JavaServer Pages (JSP), servlets, and session beans to deliver enterprise application functionality. This section discusses details of modeling such relationships for entity beans.

Entity Bean and Other Java Classes

A common scenario involves an entity bean that has other Java objects as de pendent data objects. A good example is an Account entity bean, which has one or more addresses associated with it (reflecting multiple account holders' addresses).

Because a dependent data object cannot independently exist from the entity bean, an appropriate way to model such ...

Get Developing Enterprise Java Applications with J2EE™ and UML 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.