This is the starter project. Your tasks:
- Use
PreparedStatementfor all SQL operations inTransactionService. - Implement a transfer that uses a single transaction. On any error, rollback.
- Add a forced error path (parameter
triggerError) to simulate failure and verify rollback. - Print simple logs (
System.out.println(...)) for: starting tx, executing SQL, commit, rollback.
Run tests:
gradle -q test