arshid dar
arshid dar

Reputation: 1485

Querying on arrays with jpql in hibernate 6.1

In hibernate 6.1, we can now map Lists or Sets to database arrays. the mapping is working fine my question is there any support for querying on the arrays?

in my entity, I have a field like this

class A {
Set<Integer> lists;

}

i want to query like this

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

Upvotes: 0

Views: 163

Answers (1)

Christian Beikov
Christian Beikov

Reputation: 16452

There is no support for this yet. You can follow https://github.com/hibernate/hibernate-orm/discussions/5562 though to receive updates on this matter.

Upvotes: 1

Related Questions