-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: lazy attribute on many-to-many
PostPosted: Sat Feb 14, 2009 6:43 am 
Newbie

Joined: Thu Jan 12, 2006 7:41 am
Posts: 10
Location: Lyon - France
When using many-to-many association, I used to set lazy attribute on the collection :

Code:
<set name="produits" table="PRODUIT_AUTEUR" lazy="false" inverse="true">
      <key column="AUTEUR_ID"/>
      <many-to-many class="Produit" column="PRODUIT_ID"/>
</set>


Now, I see that there is a lazy attribute in many-to-many element. I haven't found explanation on that attribute in the documentation, and I don't see any difference when testing.

Code:
<set name="produits" table="PRODUIT_AUTEUR" inverse="true">
      <key column="AUTEUR_ID"/>
      <many-to-many class="Produit" column="PRODUIT_ID" lazy="false"/>
      </set>


Does anyone knows how to use that lazy attribute ?
Thanks.[/code]

_________________
Olivier Hanny
Senior Software Engineer
http://www.icodem.fr


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.