In domain modeling class diagrams, extends relationships apply only to container-managed persistence (CMP) entity beans. They do not apply to session or message-driven beans.
As the following figures illustrates, an extends relationship is displayed as a solid line with an unfilled arrowhead that points from the specialized (child) Java class or Enterprise JavaBeans (EJB) enterprise bean to the general (parent) Java class or EJB enterprise bean. You can also visually represent and develop extends (inheritance) relationships between CMP entity beans.
| Java source code | UML visual representation |
![]() |
![]() |