JRHibernateQueryExecuterFactory.PARAMETER_HIBERNATE_SESSION . Executing
this code will generate a report like the following:
Of course, in order for this procedure to work, Hibernate must be properly configured
to connect to the database where the report will be retrieving data from. Refer to the
online Hibernate documentation at http://hibernate.org/5.html for details.
JasperReports versions prior to 1.2 lack direct integration
with Hibernate. A technique commonly used before this
integration was to use Hibernate to populate a collection
of data objects and use these data objects to create a
JRBeanCollectionDataSource instance. Then, use this
instance of JRBeanCollectionDataSource to populate the
report. This technique is explained in detail in the Hibernate
website at http://www.hibernate.org/79.html .