This week's book giveaway is in the Design and Architecture forum. We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line! See this thread for details.
One is to avoid a database hit and to use lazy loading and proxies with the session's load() method. The other to use interception and lazy="no-proxy" on the many-to-one side. For more, see the book Java Persistence with Hibernate on p.315 and p.571
Is there any statement that one approach is faster than the other
Any experiences here?
Regards, Darya
SCJP, SCJD, SCWCD, SCBCD
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad: