calling report via hibernate (iReport v1.2.4)


Just wanted to know which function to use when i am using iReport with Hibernate. I could retrieve the data by running th e report (with HQL) from iReport. What do i have to do to call it from my Java application ?

For normal Sql connection i could use:

JasperFillManager.fillReportToFile(reportNames + ".jasper", param, getConnection());

But with Hibernate, what do i need to do ?

Thanks for any help

tt_linux's picture
Joined: Jul 17 2006 - 11:11pm
Last seen: 16 years 10 months ago

1 Answer:

You have to set the parameter:


with your hibernate session instance.

Take a look at the samples provided with JasperReports.

giulio's picture
Joined: Jan 2 2007 - 4:15pm
Last seen: 3 weeks 2 days ago