问一下这个hql语句怎么写
我hibernate的配置文件里有两个many-to-one如下
<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;