Files
hibernate-demo/n-plus-one-guard/output/04-join-fetch-pagination.txt
T

6 lines
504 B
Plaintext

# join fetch on a collection + setMaxResults(3), 10 authors x 3 books
# Hibernate ORM 7.4.16.Final, datasource-proxy 1.11.1, H2, JDK 25
authors returned: 3, books loaded: 9
SELECT statements: 1
sql> select a1_0.id,b1_0.author_id,b1_0.id,b1_0.title,a1_0.name from (select a1_0.id,a1_0.name from Author a1_0 where exists(select 1 from Book b1_0 where a1_0.id=b1_0.author_id) order by a1_0.id offset ? rows fetch first ? rows only) a1_0(id,name) join Book b1_0 on a1_0.id=b1_0.author_id order by a1_0.id