Jump to content

JasperReports Crosstab or Subreports without querys


aek

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...