How to pass list of arguments in criteriabuilder.equal method

5.7k Views Asked by At

Can you tell me if it's any way of using equal method in CriteriaBuilder in that way :

criteriaBuilder.equal( myClass.get("id") , HERE LIST STRINGS ARGUMETNS INSTEAD OF SINGLE STRING ) ?

thank you

1

There are 1 best solutions below

2
On

Did you look at this question. It looks like you want the in() operator not equal()

JPA CriteriaBuilder - How to use "IN" comparison operator