我正在使用oracle 10g和hibernate 3.3.2。我以前在sql中使用过正则表达式,现在我第一次在HQL中使用它。=:companyId and 这是我的hql,当我在没有regex_like函数的情况下运行它时,它将按预期运行。嵌套异常是org.hibernate.hql.ast.QuerySyntaxExc
我正在使用hibernate,在哪里获取数据我正在使用条件。但我认为使用标准有一些限制。但是我想问下面一些我认为可以通过使用hibernate中的条件来实现的事情。from data d group by d.priceId) as adata where sumP like '%%';selectavgP", new String[]
我需要在Java语言中编写hibernate query (createSQLquery),我有查询,但我有点不知道如何为我的查询创建条件。基本上,我必须将常规的where子句转换为hibernate限制(.add)where (name LIKE '%test%' or lastname LIKE '%test%'= 2) and (date>=121212 and date <= 34334