How to dynamically generate SQL query based on user’s selections?

后端 未结 5 1412
误落风尘
误落风尘 2021-01-22 18:56

This is the same question as:

How to dynamically generate SQL query based on user's selections?

The only difference is, that I\'m interested in seeing soluti

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-22 19:16

    I use the Querydsl framework because I'm using JPA 1.0 which does not include the Criteria API and I also needed the features you described. Writing Querydsl code is easy and the code is shorter than Criteria API code. Querydsl is free to use and it supports typesafe queries.

提交回复
热议问题