Hi
I want to feed a Jasper Report with the join of two tables.
I am using hibernate.
My source code is like:

public List view_report()
{
success=false;
List results ;
try
{
Session session = HibernateFactory.getSession();
HibernateFactory.beginTransaction();
results = HibernateFactory.getSession().createCriteria(Payroll.class).setFetchMode("employee",FetchM ode.JOIN).list();

HibernateFactory.commitTransaction();
HibernateFactory.closeSession();
}
catch (Exception ex)
{
ex.printStackTrace();
return null;
}
return results;
}

Now when i run the Jasper Report, i get the error

java.lang.NoSuchMethodException: Unknown property 'empid'.

What should be done to correct this ?