Developing inheritance structures

To complete the banking model shown in Figure 11-33 on page 435, we now implement the two subclasses of Account, Checking and Savings.

Support for inheritance in Application Developer

The EJB 2.0 specification does not support inheritance. However, IBM products, such as VisualAge for Java, WebSphere Application Server, and the Application Developer, provide support for inheritance structures of entity EJBs.

Entity EJBs can inherit attributes and methods from the superclass entity bean, define additional attributes and methods, and overwrite inherited methods.

Defining the inheritance structure

Application Developer enables us to define entity beans as subclasses of existing entity beans in the Create an Enterprise ...

Get EJB 2.0 Development with WebSphere Studio Application Developer now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.