kalyen kumar wrote:
If I use the tool independently (tool interacting directly with database and creating reports) then how can I use hibernate here...?
I am confused.........
I've used iReports with Hibernate directly and I don't recommend it. It is a nice solution, but you don't break away completely form the issues you mention. Your report tool still remains coupled to your application because any change to the application's data model. I've moved to using a pure
Java Bean solution. It is the responsibility of the application to create an array of such beans and pass it to the report. That way you have:
then you have
Your application should have a way to convert a DataBean to a ReportBean in such a way to create:
Then you fill the report with reportList using JasperFillManager.fillReport(...);