JPA2: Case-insensitive like matching anywhere

后端 未结 7 1996
梦毁少年i
梦毁少年i 2020-12-13 03:45

I have been using Hibernate Restrictions in JPA 1.0 ( Hibernate driver ). There is defined Restrictions.ilike(\"column\",\"keyword\", MatchMode.ANYWHERE) which

相关标签:
7条回答
  • 2020-12-13 04:29

    Please consider to use

    CriteriaBuilder.like(Expression<String> x, Expression<String> pattern, char escapeChar);
    

    for matching anywhere.

    0 讨论(0)
提交回复
热议问题