• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Disable Parent Loading

 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am new to Hibernate.
I was just curious that if there was a way to disable loading the parent object while hibernate retrieve the child object.

Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the association is defined as lazy, the parent object will only be loaded if you access a property on it. Have a read of this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic