I would like to use the hibernate api criteria to formulate a specific request that combines two objects. Let me say that I have two entities: Pet and Owner with an owner having many pets, but to a decisive extent this association does not appear in the Java or xml annotation.
With hql, I can select owners who have a pet named "fido" by specifying the connection in the request (instead of adding a set of pets to the owner class).
Can this be done using sleep criteria? If so, how?
Thanks J
java hibernate hql criteria
Snukker Apr 6 '09 at 7:37 2009-04-06 07:37
source share