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();

[1012 byte] By [dfdafdaa] at [2007-11-26 12:46:28]
# 1
For questions about specific third-party API's you are far better off to post in forums specific to that API, because they will be full of people who can help you.
cotton.ma at 2007-7-7 16:26:52 > top of Java-index,Java Essentials,Java Programming...