devonl wrote:
are any of your properties (Classes) or collections (associations) mapped lazy=true?
Yes.
My schema is like:
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" namespace="MyCo.Vehicle" assembly="MyCoLib">
<class name="Car" table="Cars" lazy="true">
<id name="CarID" type="long">
<generator class="native" />
</id>
<property name="Name" />
<joined-subclass name="Truck" table="Trucks" lazy="true">
<key column="CarID"/>
<set name="Parts" table="TrucksToParts" fetch="select">
<key column="CarID"></key>
<many-to-many column="partID" class="TruckPart" fetch="select"/>
</set>
</joined-subclass>
</class>
</hibernate-mapping>
I'm querying "Truck" and one of the result is like "CProxyTypeCarVehicle_INHibernateProxy_ISerializable2" and
the rest is of type "MyCo.Vehicle.Truck".
Any idea?