【问题标题】:How to add oracle hint (use_nl) to a spring boot jpa query如何将 oracle 提示(use_nl)添加到 spring boot jpa 查询
【发布时间】: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)(使用嵌套循环),我该如何添加该提示?

【问题讨论】:

    标签: jpa hql


    【解决方案1】:

    你不能。您需要使用本机查询。

    【讨论】:

      猜你喜欢
      • 2015-05-11
      • 1970-01-01
      • 1970-01-01
      • 2021-10-13
      • 2022-11-16
      • 1970-01-01
      • 2021-02-09
      • 2021-09-15
      • 2022-01-24
      相关资源
      最近更新 更多