Hello everyone,
i have a class
User that contains a field
person,
i want to select all the users with person.name = John.
The mapping for User (old style xml for old project) is smth like this:
Code:
<class name="User" table="user">
<id name="uid" column="uid">
<generator class="increment"/>
</id>
<property name="username" />
<many-to-one name="person" class="Person" />
<property name="deleted" />
</class>
and Person is smth like this:
Code:
<class name="Person" table="person">
<id name="uid" column="uid">
<generator class="increment"/>
</id>
<property name="name"/>
<property name="deleted" />
</class>
could u help me? I know it's easy but I cant remember anything, lol