Hibernate 6.6.16.
Bytecode enhancing is on (dirty + lazy only).
I have Deal and Participant entities with bidirectional @OneToOne(LAZY) fields. Deal has 3 such properties. Participant has 11.
findOneById() produces different SQL queries:
- for Participant it fetches only row from participant table (this is what i want)
- for Deal it fetches row from deal table + all OneToOne relations by separate queries.
Why?