A full desktop banking application built in Java with a Swing GUI and an Oracle XE database. The system supports two roles — Manager and Customer — each with their own interface and permissions. Authentication uses password hashing with a first-login flow: the first time a user logs in, their numeric ID is accepted as a temporary password and immediately hashed. After 3 failed attempts the account locks in the database.
The codebase is organized into 7 distinct structural layers:
+--------------------------------------------------------------------------+
| FORTIS BANK SYSTEM // 7-LAYER ARCHITECTURE |
+--------------------------------------------------------------------------+
[ 07. UI LAYER ] LoginWindow, BankManager, BankCustomer (Swing/AWT)
│
▼
[ 06. SERVICE LAYER ] LoginService, CustomerService, ManagerService
│ (Enforces business logic, limits & account locking)
▼
[ 05. BUSINESS CORE ] Account (Checking, Savings, Credit, Currency)
│ Customer, Transaction, Validator, ITransaction
▼
[ 04. DTO LAYER ] Plain Data Transfer Objects between tiers
│
▼
[ 03. DAO LAYER ] AccountDAO, CustomerDAO, TransactionDAO
│ (All SQL via PreparedStatements, autoCommit=false)
▼
[ 02. UTILITY LAYER ] BankLogger, CsvExporter, PdfExporter, PasswordUtil
│
▼
[ 01. DATABASE ] Oracle XE 21c (schema: c##banksystem)
+--------------------------------------------------------------------------+
Abstract Account class + 4 concrete types, Customer, Transaction, Validator, ITransaction interface
One DAO per entity. All queries go through a shared Oracle singleton connection (DBConnection)
Plain data transfer objects between layers
LoginService, CustomerService, ManagerService; business rules live here, not in the UI
LoginWindow, BankManager (manager UI), BankCustomer (client UI)
BankLogger (singleton), CsvExporter, PdfExporter, PasswordUtil, SessionManager
Standard chequing with daily withdrawal limit ($5,000)
Interest-bearing; restrictions on withdrawal frequency
Credit line with configurable limit and interest rate
Multi-currency; stores a base currency and conversion rate