aek Posted February 10, 2010 Share Posted February 10, 2010 I have a question related to the use of Collections datasources in Jasper Report.i want to remove all the querys from the Jasper Reports templates and provide all the data needed using my domain object previously retrieved using Spring as the Business layer and Hibernate as the Data Access layer.my domain object structure is like this: class A { Long id; Set<B> b; String data; } class B { Long id; Set<C> c; String data; } Class C { String data1; String data2; String data3; } I retrieve by id an instance of class A, and I want to supply to the filling process of the report the collection A.getB() to generate a table for every B.getC() Collection as a dataset of the table. I think that the table maybe a Crosstab but I don't know very much about Jasper Reports, the alternative can be the use of a Subreport but I don't want querys in my reports because all the data are already retrieved by my Business/Dao layers, it must be using B.getC() as a datasource.I can't figure out what this functionality may be adquired in JasperReports.Someone has any points on this? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now