I'm terribly new to Hibernate. I've googled for two hours but I still can't figure out, how to make JOIN without using HQL, only by criteria. I have tables Clients(cID, name) and Visits(vID, vcID, date). The relation is one to many (one client can visit multiple times). I would also like to do it without setFetchMode. Just Criteria. Do I have to change the mappping xml?
UPDATE: this is part of my mapping xml:
<class name="Client" table="Clients"> <id name="cID" column="cID"><generator class="native"/></id> <property name="name" length="10" not-null="true"/> </class> <class name="Visit" table="Visits"> <id name="vID" column="vID"><generator class="native"/></id> <property name="vcID" length="10" not-null="true"/> <property name="date" length="25" not-null="true"/> </class>