Hibernate (http://www.hibernate.org) is a very popular ORM tool. JasperReports (version 1.2 and newer) includes native support for Hibernate integration. This integration consists of allowing embedded report queries to be written in the Hibernate Query Language (HQL). The following JRXML template illustrates how to do this:
<?xml version="1.0" encoding="UTF-8"?> <jasperReportxmlns="http://jasperreports.sourceforge.net/jasperreports"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd"name="HibernateQueryDemoReport" pageWidth="595" pageHeight="842"columnWidth="555" leftMargin="20" rightMargin="20"topMargin="30" bottomMargin="30"> <parameter name="countryCode" class="java.lang.String"/> <queryString language="hql"> <![CDATA[from Aircraft aircraftwhere country = $P{countryCode} order by aircraft...