-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: [JasperReport][Hibernate] Doing subreports
PostPosted: Fri Jul 30, 2004 6:20 pm 
Beginner
Beginner

Joined: Tue Sep 23, 2003 5:00 pm
Posts: 40
Hi,

I am not totaly sure if it's the right place to post this thread in this forum .... but I guess someone of the Hibernate Team will kindly avice me if it isn't !

I am using Hibernate and I am trying to generate report thanks to JasperReport API.
http://jasperreports.sourceforge.net/

The page in the Wiki helped me to generate basic reports :
http://www.hibernate.org/79.html

The problem is that I need to generate subreport ... and I can not find a way to manage it with hibernate ....

I would apreciate it if someone could provide me with a solution or a least an idea ...

Thanks in advance,
sylvain_2020


Top
 Profile  
 
 Post subject: I´m having the same problem...
PostPosted: Mon Mar 21, 2005 7:17 pm 
Newbie

Joined: Mon Aug 09, 2004 2:50 pm
Posts: 10
Location: Sao Paulo , SP, Brazil
Hi,

I´m having exactly the same problem. Do you already have the solution about how to set a datasource to a subreport ?

Thanks in advance,

Sergio Stateri Jr
sstateri@atech.br


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 21, 2005 8:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I'll be interested myself. A current project we built 200 Jasper reports but avoided sub-reports since the project plan did not allow any research/investigation time.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2005 10:54 am 
Pro
Pro

Joined: Tue Aug 26, 2003 1:24 pm
Posts: 213
Location: Richardson, TX
If you use Spring there's some info on how to configure Jasper here: http://www.springframework.org/docs/reference/view.html It includes info on configuring subreports.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 22, 2005 7:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
We dont use Spring but there is alot of good information there.
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 5:10 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
Configuring subreports using hibernate is no different from configuring a subreport using some other data source.

If you wish to pass a POJO down to the subreport then you need to wrap it with in a JRDataSource - remember all reports, be they subreports or standard reports accepts an implementation of a JRDataSource.

I'm not going to elaborate on the details of this - it's fairly verbose and probably not the right place anyway. You are welcome to take a look at my usage of jasper using hibernate. The project can be found at:

http://cvs.uwc.ac.za/viewcvs/viewcvs.cg ... ects/ewage

The report designs are at:
http://cvs.uwc.ac.za/viewcvs/viewcvs.cg ... e/reports/

Irp5.jrxml is the main report
Irp5DeductionSR.jrxml is a subreport
Irp5IncomeSR.jrxml is a subreport

The test classes at:
http://cvs.uwc.ac.za/viewcvs/viewcvs.cg ... reporting/

will give be a good start


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 23, 2005 9:18 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Very nice. Well layed out and easy to read and follow. Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.