【问题标题】:Querying on arrays with jpql in hibernate 6.1Querying on arrays with jpql in hibernate 6.1
【发布时间】:2023-02-01 20:30:26
【问题描述】:

在 hibernate 6.1 中,我们现在可以将列表或集合映射到数据库数组。映射工作正常 我的问题是是否支持查询数组?

在我的实体中,我有一个这样的字段

class A {
Set<Integer> lists;

}

我想这样查询

"select a from A a where :ele member of lists";

【问题讨论】:

    标签: hibernate jpa hql jpql


    【解决方案1】:

    目前还没有对此的支持。您可以关注https://github.com/hibernate/hibernate-orm/discussions/5562 以接收有关此事的更新。

    【讨论】:

      猜你喜欢
      • 2016-12-22
      • 2013-01-13
      • 2021-05-14
      • 2018-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-15
      相关资源
      最近更新 更多