执行SQL查询

image
想要在服务中写一个直接执行SQL查询的方法,但是这个persistence 获取不到相关的方法。是不是我漏了什么东西没有设置 :sob:

注入的 persistence 可能不是 com.haulmont.cuba.core.Persistence

解决了 谢谢