The following figure shows the UML diagram of a simple banking system. It defines four entities: Customer
, Address
, Account
, and Transaction
.
Every bank needs a customer. The customer information that is stored is the name, date of birth, and address. For every address, the model stores two address lines, postal code, city, and country. The customer can have zero or many accounts. Each account has a number, name, actual balance, and currency. Account can be of specific type; the following types are considered:
Transactional—for day-to-day banking, usually with very little rate of interest.
S avings—account for saving money. Start date represents the date when the money was lodged into this account and end date represents the date when it was withdrawn.
S tudent—designed specifically for younger customers who are price sensitive; however, they don't need more advanced services.
A bank would be useless without the ability to make transactions. Every transaction has an accountFrom...