Files
java-interview-lab/hibernate-jpa/output/q27-eager-many-to-one.txt
T

7 lines
441 B
Plaintext

'from EagerEmployee' with the default @ManyToOne: 4 SQL statements for 9 employees in 3 departments
SQL> select ee1_0.id,ee1_0.department_id,ee1_0.name from EagerEmployee ee1_0
SQL> select d1_0.id,d1_0.name from Department d1_0 where d1_0.id=?
SQL> select d1_0.id,d1_0.name from Department d1_0 where d1_0.id=?
SQL> select d1_0.id,d1_0.name from Department d1_0 where d1_0.id=?
'from Employee' with @ManyToOne(fetch = LAZY): 1 SQL statement