有谁知道 Hibernate 的 JPA2 Criteria API 的 [Restrictions.sqlRestriction][1] 等价物吗?
此外,如果没有等价物,我很想知道在 Hibernate 的 JPA2 支持中破解某些东西以在查询中插入我自己的 SQL 片段会有多难。
非常感谢,萨米
[1]:http ://docs.jboss.org/hibernate/core/3.5/api/org/hibernate/criterion/Restrictions.html#sqlRestriction (java.lang.String, java.lang.Object[], org. hibernate.type.Type[])