April 2003
Intermediate to advanced
750 pages
16h 53m
English
In this section, we expand the banking application to describe how we might add the following new features to our beans:
Relationships
Inheritance
Custom query methods
EJB QL examples
As in the CMP persistent fields, the CMR relationship fields must also be mapped to an actual database element at deployment time, so that the concrete code can be generated. Therefore, each CMR field is mapped to a foreign key on the table that we are relating to.
The following are the new features that we will add to our banking system:
Support for new entity bean Account— This bean has the following persistent fields defined: accountID (primary key), ...
Read now
Unlock full access