Project an Entity from a relationship with Hibernate Criteria

前端 未结 1 1756
温柔的废话
温柔的废话 2021-01-07 14:50

I\'m having trouble getting a list of related entity objects as the result of a criteria expression. I have two objects with a many to many relationship such that ObjectA &l

相关标签:
1条回答
  • 2021-01-07 15:12

    You can't do that with the Hibernate Criteria API. It's possible in HQL or in the JPA2 Criteria API, but not using the Hibernate Criteria API.

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