Mix HQL and Criteria API in Hibernate

前端 未结 2 1170
北海茫月
北海茫月 2021-01-25 13:16

Is it possible to mix HQL and the Criteria API?

I have a String that contains a where condition in HQL and a Criteria that is already built and

相关标签:
2条回答
  • 2021-01-25 14:03

    have a look at Filters

    0 讨论(0)
  • 2021-01-25 14:06

    You can use Restriction.sqlRestriction(String sql).

    0 讨论(0)
提交回复
热议问题