【发布时间】:2022-01-15 00:53:19
【问题描述】:
我有一个 hql 查询
select new com.packagename.CountryInfoDto(c.countriesId, c.internationalCode, c.countryName, ot.name) from Country c
inner join OtherTable ot on c.otid = ot.id
where c.deleted = (:deleted)
order by c.countryName
我这样创建查询。
TypedQuery 查询 = entityManager.createQuery(queryString, BookingInfoDto.class);
现在,如果我想提示 use_nl(c ot)(使用嵌套循环),我该如何添加该提示?
【问题讨论】: