At JPA/Hibernate we can write secure queries and accumulate our query predicates one step at a time. I believe that there is no equivalent in MyBatis , but is there any abstraction structure (e.g. QueryDSL ) that provides a layer above MyBatis that can allow us to write queries of type type. My main reason for requiring API criteria is that I need to build a query, each of which predicates comes from a separate logic.
Daud source share