I need to create a \"real\" dynamic JPA CriteriaBuilder. I get an Map with the statements. It looks like:
CriteriaBuilder
Map
nam
For Predicate you can create new ArrayList add all your predicate to the list and then at the end you can create a predicate array and convert list to predicate array and directly assign it to criteriabuilder.where(new Pridicate[])