Hibernate Regex

前端 未结 1 1439
小蘑菇
小蘑菇 2020-12-07 00:04

I am trying to build an API which can search by HQL regex keywords,

EDITED: The best way to perform regex search in HQL is to use criteria, Restrictions.like() or Re

相关标签:
1条回答
  • 2020-12-07 00:20

    HQL does not have regular expressions. If you want to use database provider specific constructs for regular expression, Dialect should be modified. This question contains discussion about how to do that with Oracle database.

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