• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Proxy and Lazy

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any difference between in using these two , as both are related to lazy loading ?

Please help
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming your question is about Hibernate, a proxy is a generated class used to implement lazy loading. Lazy loading itself is a concept. Beyond that, I don;t really understand what it is your are asking.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul ,

what i mean to ask is that on to the hbm files we will specify both these techniques

<set name="appointments" lazy=true>
<key column="apid"/>
<one-to-many class="Appontment"/>
</set>

and

<class name="mypack.Myclass" Table="Users" proxy="some class">
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic