Add experienced-2-3y module: 31 scenario questions (core Java, collections/streams, concurrency, Spring Boot 4.2, JPA N+1, REST problem details, SQL) with 7 asserting tests and 8 transcripts

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6u469kis46DspusiL
This commit is contained in:
Ankur Mhatre
2026-11-22 02:01:04 +05:30
co-authored by Claude Sonnet 5.5
parent 4180e746ef
commit 76012dd8c3
36 changed files with 1401 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
== Q25: N+1 selects ==
data: 5 customers, 12 orders (4 customers x 3 orders, plus one customer with none)
lazy loop (default) : total = 2400, SQL statements = 6
JOIN FETCH query : total = 2400, SQL statements = 1
@EntityGraph("orders") : total = 2400, SQL statements = 1
== Q26: LazyInitializationException ==
no @Transactional around the loop -> LazyInitializationException
message: Cannot lazily initialize collection of role 'com.ankurm.interviewlab.exp23.spring.Customer.orders' with key '1' (no session)
== Q27: a DTO projection with LEFT JOIN ==
OrderTotal[name=Asha, total=600]
OrderTotal[name=Kiran, total=600]
OrderTotal[name=Meera, total=600]
OrderTotal[name=Nobody, total=0]
OrderTotal[name=Ravi, total=600]