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]