Java: Eclipse Temurin 21.0.11+10-LTS
Maven: 3.9.11
Spring Boot: 4.2.0
Hibernate ORM: 7.4.15.Final
H2: 2.5.252
BootUI: 2.6.0 (optional profile)

mvn verify
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

RESULT /books?limit=1 size=1 lazy=2 projection=1 same-json=true
RESULT /books?limit=3 size=3 lazy=4 projection=1 same-json=true
RESULT /books?limit=5 size=5 lazy=6 projection=1 same-json=true
RESULT /books size=20 lazy=21 projection=1 same-json=true

SQL lazy 01 select b1_0.id,b1_0.publisher_id,b1_0.title from books b1_0 order by b1_0.id fetch first ? rows only | binds [1=20]
SQL lazy 02 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=101]
SQL lazy 03 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=102]
SQL lazy 04 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=103]
SQL lazy 05 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=104]
SQL lazy 06 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=105]
SQL lazy 07 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=106]
SQL lazy 08 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=107]
SQL lazy 09 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=108]
SQL lazy 10 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=109]
SQL lazy 11 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=110]
SQL lazy 12 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=111]
SQL lazy 13 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=112]
SQL lazy 14 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=113]
SQL lazy 15 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=114]
SQL lazy 16 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=115]
SQL lazy 17 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=116]
SQL lazy 18 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=117]
SQL lazy 19 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=118]
SQL lazy 20 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=119]
SQL lazy 21 select p1_0.id,p1_0.name from publishers p1_0 where p1_0.id=? | binds [1=120]
SQL projection 01 select b1_0.id,b1_0.title,p1_0.name from books b1_0 join publishers p1_0 on p1_0.id=b1_0.publisher_id order by b1_0.id fetch first ? rows only | binds [1=20]
