wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes performance tuning using select and join Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "performance tuning using select and join" Watch "performance tuning using select and join" New topic
Author

performance tuning using select and join

Naresh Chaurasia
Ranch Hand

Joined: May 18, 2005
Posts: 356
I was reading about the performance tuning in hibernate and came across the following statment.

select: Lazily load the referenced object or collection with a separate SQL SELECT statement. It is the default value
join: Eagerly load the referenced object or collection using an outer join

I know that in case of hibernte3, the lazy is true by default. That means that the associcated object would be fetched only when its method is called.

Now i wanted to understand that the above statements for select and join holds true only when the lazy is set to false? Please explain.


SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: performance tuning using select and join
 
Similar Threads
How to visit lazy-loaded member outside Session scope?
set lazy to false in runtime in Hibernate
Hibernate one-to-many weirdness...
What is difference between lazy=true and fetch=select
hibernate left join fetch question