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

后端 未结 5 1362
误落风尘
误落风尘 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:18

    There are many different tools the best i think are querydsl, torpedoquery e Object Query, this three allow to write typesafe query, otherwise you can use criteria api, and if you are using jpa 2 also JPA2 Typesafe Query.

    with all this tools you can build a query at runtime!!

提交回复
热议问题