I have this class mapped as a entity, lets call it Person. Person has an embedded/component relation to Address. I am having trouble using a Criteria that would return Address objects. I have tried this:
Criteria.createCriteria(Address.class)
Which does not work. I guess I need to go through the entity but then I would need some kind of projection?
Criteria.createCriteria(Person.class).<<what goes here???>>
Suggestions?