admin管理员组

文章数量:1125764

I have a Predicate that checks if a customer contains all the search tags:

        for(String tag:filter.getSearchTags()){
            Predicate tagsPredicate = builder.isMember(tag, customer.get("tags"));
            predicate = builder.and(predicate, tagsPredicate);
        }

Right now I'm basically just looping over each one individually. But is there a way to build the @> from postgresql? To quickly check if array contains array B? tags is a ComponentCollection (List)

本文标签: javaHow can I build a predicate that intersects 2 arrays with JPAStack Overflow