hibernate joins issue
can get the getters and setters for the AssignmentItems class in my jsp but not my transaction class this two classes are mapped with hibernate and I have made the joins how when I get the resultset how do iterate them...
<%
List result = (List) request.getAttribute("result");
%>
<%
for (Iterator itr=result.iterator(); itr.hasNext(); )
{
com.dao.hibernate.AssignmentItems ai = (com.dao.hibernate.AssignmentItems)itr.next();
com..hibernate.Transactions tr = (com.dao.hibernate.Transactions)itr.next();
%>
<tr><td>
<%=ai.getId()%>
<%=tr.getTransaction()%>
</td></tr>
but that doesnt work why? it says that Transactions is not initialized
this is what I have in my action class:
List ai = session.createCriteria(AssignmentItems.class)
.createCriteria("transaction")
.add(Expression.eq("department", new Integer(10)))
.list();

