【发布时间】:2010-12-01 02:37:37
【问题描述】:
我将这个类映射为一个实体,我们称它为 Person。 Person 与 Address 具有嵌入/组件关系。我在使用会返回地址对象的条件时遇到问题。 我试过这个:
Criteria.createCriteria(Address.class)
这不起作用。我想我需要通过实体,但我需要某种投影?
Criteria.createCriteria(Person.class).<<what goes here???>>
建议?
【问题讨论】: