Hi all,
I´ve created a HQL to find the currencies. It´s a simple hql:
Code:
FROM CurrencyTO currency
within the CurrencyTO exists a list of items. I don´t want load
the list, BUT when I debuging, all items are being loaded.
I did not understand because I´m using lazy=true, like the mapping:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="Proj.TO.Codification.CurrencyTO,Proj.TO"
table="cod_moeda" lazy="true">
<id name="Code" column="cd_moeda">
<generator class="assigned"/>
</id>
<property name="Name" column="no_moeda"/>
<property name="Value" column="valor"/>
<bag name="Items" inverse="true" lazy="true">
<key column="cd_moeda"/>
<one-to-many class="Proj.TO.Codification.ItemTO, Proj.TO"/>
</bag>
</class>
</hibernate-mapping>
What´s happening in this case?
thanks!!!!