Roo for non-crud app, does the book have examples

18 views
Skip to first unread message

sal

unread,
Oct 10, 2011, 3:07:47 PM10/10/11
to spring-ro...@googlegroups.com
I'm looking to using Roo for a reporting app and came across this.


Are there examples on using roo to connect to a database for read-only access in the book? 

I am building a reporting system that will reuse some DAO layers that come from other apps. The reports will pull data from multiple sources in drill down screens. Is roo good for this? It looks like it does a lot of what I need for free but I can't seem to find any examples where there are no entities created.

Thanks

Ashish Sarin

unread,
Oct 13, 2011, 11:07:14 AM10/13/11
to spring-ro...@googlegroups.com
Hi

The book doesn't cover the specific scenario you talked about. But, if you are comfortable with using Spring Roo, you can simplify developing your intended application. For instance, you can use project and persistence provider command to configure the database and maven project. Then, create JPA entity which reflects the fields in the DTO that your DAO layer might be returning. Now, scaffold the Spring Web MVC layer for this JPA entity.

Now, you can go ahead and delete the unnecessary configuration and JSPX files that you don't need, and plugin your own DAO to retrieve the data from different databases. I'm not sure this is helpful, but it might give you some direction.

thanks
ashish
Reply all
Reply to author
Forward
0 new messages