日期:2014-05-17 浏览次数:20623 次
<many-to-one name="tpListOption" class="com.easecom.base.model.ListOptions" fetch="select" lazy="false"> <column name="type" length="32"></column> </many-to-one> <many-to-one name="stListOption" class="com.easecom.base.model.ListOptions" fetch="select" lazy="false"> <column name="state" length="32"></column> </many-to-one>
String hq = "from Assets Assets left outer join Assets.stListOption s," + left outer join Assets.tpListOption t"+ " where 1=1 "
String hq = "from Assets a where a.stListOption.xxx = " + xxx + " and a.tpListOption.xxx= " + xxx;