Hi all,
I'm doing a simple query joining 2 tables with a many-to-one relationship.
The query is
"from Employee e join e.dept d where d.dept_id=?". I'm using Spring dao HibernateDaoSupport to get the results and the results are returned in a List.
I've become a bit clueless how to traverse this list. The structure of the list looks like this.
List -> Object[0] -> Employee
-> Dept
-> Object[1] -> Employee
-> Dept
.
.
.
.
-> Object[n] -> Employee
-> Dept
My question is, how can I traverse to the Employee and Dept objects?
Thanks for you help in advance.
|