Using hibernate criteria, is there a way to escape special characters?

前端 未结 5 1115
天涯浪人
天涯浪人 2020-12-03 03:19

For this question, we want to avoid having to write a special query since the query would have to be different across multiple databases. Using only hibernate criteria, we w

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 04:18

    if you use LikeExpression directly, it enables you to specify the escape character. i assume that should be all you need.

提交回复
热议问题