• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jasper Reports with hibernate

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using jasper report with hibernate. From hibernate i get List object which i pass to JRBeanCollectionDataSource object and fill the report.
Code:
JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(reportdata);
JasperPrint print=JasperFillManager.fillReport(report,params,ds);

But when the report is generated it shows only first record. my arraylist contains more than one objects(DTOs).Still report shows one record only!
Can you help me?

Thanks & Regards,
Gajajnan
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Gajajnan,

I am also working on the same kind of application(spring+hibernate using jasper reports). Can you please post the xml files(jrxml) and the source code. I am not able to understand how to get the List in to a formatted report(html or csv format).

Do we need to generate the jrxml file dynamically? This is the first time i am working on jasper reports.

Thanks,
Decent Dude.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"decent dude", please check your private messages for an important message from me.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi i would require some help to know abt jasper reports could you send me a simple example of producing a report using spring and hibernate would appreciate for the response
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic