<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="NHiberNateSample.Domain.Entities.A, NHiberNateSample.Domain" table="a">
<composite-id>
<key-property name="a" column="a" type="int" />
<key-property name="b" column="b" type="int" />
</composite-id>
<bag name="clist" table="b" generic="true" inverse="true">
<key>
<column name="a"></column>
<column name="b"></column>
</key>
<one-to-many class="NHiberNateSample.Domain.Entities.B, NHiberNateSample.Domain"></one-to-many>
</bag>
</class>
</hibernate-mapping>
这个配置 在NHibernate2.2的时候 能够成功获取到A类下的B类集合,可是当升级为3.2的时候 取出来的B类集合却为空(查询B表的SQL也生成了,在SQL中执行是可以查询出结果的),请问这是什么原因导致的?