Beginner |
![Beginner Beginner](./images/ranks/beginner.gif) |
Joined: Tue Nov 29, 2005 4:42 pm Posts: 49 Location: Atlanta, GA
|
I have some objects with similar relationships to the following:
Parent has many Children
Children has one Favorite Toy
Say I'm loading the parent, and I'd like to eagerly load the children with ajoin with that parent. By default Toy will be eagerly loaded with the children. However, Hibernate is loading the Favorite Toy of each child as N+1. The Toy class isn't in the join clause of the original select statement! Why is it not doing that? How to I tell hibernate to do that?
Charlie
|
|