I have been reporting with jasperreports and JPA, all this reports are just "catalogs" in which the only information is an entity or some times an entity with it's related entities.
Now i have to design reports with very complex information (grouping, summarization, fields not part of an entity and so on) which is not possible with my entities (Yes i know that i can modify my design but i do't think it's good for my app).
I've been thinking in different alternatives, like passing a jdbc connection even when this implies to create methods in my classes to pass this object to the view (Which generates the report).
Another one is to create another context (application) that accesses the data base in is own way (something like BI), so this application would be separated from my original application.
Hope some one can comment or give me a better way to achieve this.
By the way, my framework it's spring.
Thank you.