Stage 2 console classes and the shared LoanPolicy, then a Spring Boot 4.1.2 + JPA API (H2, @Version optimistic locking, problem+json errors). Tests write output/ transcripts while asserting the same numbers; scripts regenerate everything. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4DPL6dtpFg4U4LHc2
5 lines
282 B
Plaintext
5 lines
282 B
Plaintext
5 loans, each with its own book and its own member
|
|
findAllByOrderByIdAsc() then read book title + member name: 11 SQL statements
|
|
findAllWithDetails() (join fetch) then the same reads: 1 SQL statement
|
|
LoanService.listLoans() as called by GET /api/loans: 1 SQL statement
|