开发者

Hibernate custom connection

开发者 https://www.devze.com 2023-03-31 17:55 出处:网络
I have some data in regular database tables, and some data are read from files. I want to leverage reporting tools facilities, so i would like \"present\" to the report tool my data as were they all w

I have some data in regular database tables, and some data are read from files. I want to leverage reporting tools facilities, so i would like "present" to the report tool my data as were they all were read from the database. Is there 开发者_如何学Goa way to achieve this?


Yes. Read the data, from anywhere you want, in your application. Then build a list of objects obeying the JavaBeans conventions, and use a JRBeanCollectionDataSource. Jasper will iterate through the list of beans, and the field $F{foo} will have the value of the result of getFoo() on the current bean.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号