persistence@glassfish.java.net

joins and relationships

From: Scott Oaks <Scott.Oaks_at_Sun.COM>
Date: Fri, 03 Mar 2006 18:05:18 -0500

I have two entities that have a OneToOne relationship, which thus has
EAGER loading. I'd assumed that they would be loaded in a single SQL
statement, but if I trace the SQL, I see two statements, one for each
object. [Ditto for ManyToOne relationships.]

Is there a way to configure the relationship to be obtained through a
single SQL statement utilizing a join?

-Scott