views:

26

answers:

0

I have two entities with one-directional OneToOne relationship. EAGER fetch type is specified. When I load parent entity by id, one sql inner join query is executed. This is right behavior. But when I specify LockOption.UPGRADE, the parent and child entities are loaded in two different queries instead of one. Why this happens?