someMethod() { def results = SQLsession.createSQLQuery但这次失败了
groovy.lang.MissingMethodException: No signature of method: org.hibernate.internal.SessionImpl.createSQLQueryselect sum(t.credit) from transaction t where t.roun
我需要在Java语言中编写hibernate query (createSQLquery),我有查询,但我有点不知道如何为我的查询创建条件。lastname LIKE '%test%') and (site_id = 2) and (date>=121212 and date <= 343343)
Query query = sess.createSQLQuery