
Chapter 9. Many-to-Many Associations 173
Implement Association Methods
As we mentioned previously, the present implementation of the Persistence
Builder does not directly accommodate many-to-many associations. As a
consequence, we must implement methods that will allow us to manage the
associations between a Card and its BankAccounts, and between a
BankAccount and its Cards. Mainly, these methods will be add, delete, and
retrieve methods. This allows us to act as though the association class,
CardAccount, does not exist when developing applications.
We will consider the modifications to be made to the Card classes.
Modifications to the BankAccount classes ...