咨询一个hibernat关联查询的问题
hbm文件如下
<class name="HjxdxmActionForm" table="YG_HJXDXM">
<id name="id" type="string" column="id"></id>
<property name="mc" column="mc" type="string" length="60"/>
<property name="xmlxid" column="xmlxid" type="string" length="60"/>
<many-to-one name="lxForm" not-null="false" not-found="ignore" column="xmlxid" unique="true" lazy="false" insert="false" update="false"/> 
</class>
查询是使用 DetachedCriteria 方式组装查询和排序条件;无条件查询查询时显示10条记录,如果按xmlx排序则显示8条记录,xmlxid为空的两条记录没有显示,怎么解决?