calling report via hibernate (iReport v1.2.4)

hi,

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

Tony
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:

HIBERNATE_SESSION

with your hibernate session instance.

Take a look at the samples provided with JasperReports.

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