Here's the code from the ref docs:
Code:
<sql-query name="selectAllEmployees_SP" callable="true">
<return alias="emp" class="Employment">
<return-property name="employee" column="EMPLOYEE"/>
<return-property name="employer" column="EMPLOYER"/>
<return-property name="startDate" column="STARTDATE"/>
<return-property name="endDate" column="ENDDATE"/>
<return-property name="regionCode" column="REGIONCODE"/>
<return-property name="id" column="EID"/>
<return-property name="salary">
<return-column name="VALUE"/>
<return-column name="CURRENCY"/>
</return-property>
</return>
{ ? = call selectAllEmployments() }
</sql-query>
As you can see, every single property in Employment is listed as a return-property. So unless your Dept class has only one property, "name", your mapping is wrong.
If you actually want to return only a list of names, then you should not be using <return>, you should be using <return-scalar>. That's described in seciton 16.3.