Closed jacevedo-emc closed 2 years ago
Hi, I found how to do it:
Specification< MyEntityTable > notINSpecification = ( Specification< MyEntityTable > ) ( root, query, criteriaBuilder ) -> {
return criteriaBuilder.not( criteriaBuilder.in( root.get( "id" ) ).value( listOfIDsToExclude ) );
};
return myEntityTableRepository.findAll( input, notINSpecification );
Best regards
Exactly, you are right! :+1:
I think we can close this now.
Hi,
I have a table with a integer column and I want to filter by " NOT IN ()". How could I do it?
Thanks