Really dynamic JPA CriteriaBuilder

前端 未结 5 1589
盖世英雄少女心
盖世英雄少女心 2020-12-02 05:50

I need to create a \"real\" dynamic JPA CriteriaBuilder. I get an Map with the statements. It looks like:

nam         


        
5条回答
  •  情书的邮戳
    2020-12-02 06:19

    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[])

提交回复
热议问题