Jump to content
We've recently updated our Privacy Statement, available here ×

altairon

Members
  • Posts

    4
  • Joined

  • Last visited

altairon's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. You are really a master,It works, thank you for your time, I can now Report ! , yeahhhhhh
  2. I don`t what's wrong , version of ireport 3.5.2 , maybe you can make one example using this version and post la correct classpath XD using a hibernate configuration in ireport, because I was following several tutorials ,but nothing, thank you anyway, but the way , what dou you use instead of JRBeanCollectionDataSource ?
  3. I just put my model clasess fields in a jar , but I think I doesn´t work , by the way , do yo know what's the diferences betewen a jrxml genereted from Database JDBC Connection and another genereted from Hibernate conncetion . What I try to Do is no make a report using JasperReport and Hibernate , and I guess the the JRXML must be genereted from using a Hibernate Configuration in IReport , I don't know :S , thank you Code:List lista = new ArrayList(); session = HibernateUtil.getSessionFactory().getCurrentSession(); session.beginTransaction(); lista=session.createCriteria(Personal.class).list(); session.getTransaction().commit(); JasperReport jasperReport; JasperPrint jasperPrint; try { jasperReport = JasperCompileManager.compileReport("C:/pruebas/report.j rxml"); JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(lista); jasperPrint = JasperFillManager.fillReport(jasperReport, new HashMap(), ds); JasperExportManager.exportReportToPdfFile(jasperPrint, "C:/pruebas/simple_report.pdf"); } catch (Exception e) { e.printStackTrace(); }
  4. hi , I don' t why it doesn't work this. when I try to setup a new conecction using hibernate . before the I configured the classpath , pointing to the mapping field, java fields and the mysql JDB driver , but when I try to establish the connection , it show "entity class not found: modelo.Personal" , what I know is that my hibernate configuration is ok , there are my classpath and my error like image , :S , sorry for my english , I'm just learning , thank you...
×
×
  • Create New...