Hibernate HQL是否支持正则表达式模式匹配?

问题描述

我正在测试使用Hibernate从数据库(MySQL)检索数据的不同方式。而且我知道可以像在SQL中一样在HQL中使用curl 'http://catalog.data.gov/api/3/' \ -H 'authority: 1fzqk3npw4.execute-api.us-east-1.amazonaws.com' \ -H 'accept: */*' \ -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/86.0.4240.111 Safari/537.36' \ --compressed ; 。但是当我尝试<img class="w-auto h-8" src="./exchange/resources/assets/img/logo/angel-lg.png" alt="Angel Logo"> <!-- src/path is wrong --> 时遇到以下错误

LIKE

我还尝试了REGEXPException in thread "main" java.lang.IllegalArgumentException: Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: REGEXP near line 1,column 54 [from com.jithin.hibernate.entity.Student where fname REGEXP '@gmail.com$'] 之类的不同形式。但是错误是相同的。那么为什么HQL支持RLIKE运算符,为什么不支持REGEXP_LIKE呢?反正有实现吗?

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)