java - Spring Roo 是适合我的工具吗? (见帖子中的要求列表)

标签 java jsf gwt spring-roo

我看了一些 Roo 的视频和演示,我有点喜欢它。然而,在开始使用它之前,我想问一些对 Roo 更有经验的程序员。

  1. Roo 使用了大量 AOP。编写自定义 Java 代码并让 Roo 生成的文件只是“单独”可以吗?或者整个 Roo 结构是否需要一些 AOP 知识。换句话说,如果我想自定义Roo项目(添加非CRUD功能),我需要搞乱AOP吗?

  2. 我见过生成实体的控制台方法。 Roo 能否将我已经运行的数据库转换为 Roo 代码(为我生成实体)?

  3. 有时我有大实体。我不想向 UI 显示某些列。这种定制是否容易实现?

  4. 获取当前 View - 我想导出用户当前在 UI 中看到的内容(比如 XML)。自动导出会很棒,但至少我可以在 UI View 中轻松获取当前数据吗? (假设用户在数据库表中看到 10% 的数据,我想将它们存储在 XML 中)

  5. 我的数据库经常变化。 Roo 如何处理不断变化的实体?那是动态添加/删除某些列...

  6. 导入数据(或全新的数据库)。我需要即时删除和创建数据库。因此 UI 可能会发生一些变化(新列)并且数据肯定会发生变化。它可以使用简单的“运行脚本并刷新”吗?

  7. 回滚。撤消您所做的任何更改。它是否为此类事物提供内置支持?

  8. 报告或至少与流行的报告工具集成。

那你怎么看? Roo 匹配这些吗?我应该试一试吗?还是我最好使用简单的 GWT、JSF 等从头开始?

OT:看到这个需求,欢迎大家留言评论,你会选择什么样的Java框架。我现在正在考虑 GWT(有点了解)、JSF 或 Spring Roo(不,我不打算自己编写 JavaScript UI);-)

最佳答案

根据我对 Roo 的了解,以下是答案:

1.Roo uses lot of AOP. Is it okay to write custom Java code and let Roo generated files just "be alone"? Or does whole Roo structure require some AOP knowledge. In other words, if I want to customize Roo project (add non CRUD functions), do I need to mess with AOP?

不,您不需要搞乱 AOP。大多数 Roo 生成的文件(如 .aj 等)除了您将放置一些代码的文件外,都可以“单独放置”。

2.I've seen console approach of generating entities. Can Roo convert my database that already runs into Roo code (generate entities for me)?

是的,[查看 Roo 逆向工程步骤][1]。

3.Sometimes I have big entities. I don't want to show certain columns to UI. Is this kind of customization easily achievable?

是的。

4.Getting current views - I'd like to do some exports of what user sees right now in UI (say to XML). Auto export would be great, but at least can I easily fetch current data in UI view? (say user is seeing 10% of data in DB table, I'd like to store them in XML)

是的。

5.My database often changes. How does Roo go by with changing entities? That's dynamically adding/removing certain columns ...

引用我对问题 2 的回答。

6.Importing data (or whole new databases). I need to drop&create database on-the-fly. So UI might change a bit (new columns) and data will change for sure. Will it work with simple "run script and refresh"?

7.Rollbacks. Undo any changes you did. Does it provide built-in support for such a thing?

没有。不支持回滚。有一个功能请求等待处理。但是,也有变通办法。

8.Reporting or at least integrating with popular reporting tools.

这与您使用 Roo 的任何普通 Java 应用程序没有任何不同。

So what do you think? Does Roo match these? Should I give it a try? Or am I better to start from scratch using say plain GWT, JSF, whatever?

希望以上回答能说明问题!

关于java - Spring Roo 是适合我的工具吗? (见帖子中的要求列表),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6243431/

相关文章:

java - p :selectOneMenu: Validation Error: Value is not valid

java - 自定义 gxt Cell 可能需要 Widget

java - twitter4j.TwitterException : 401:Authentication credentials were missing or incorrect

java - 获取列表中出现多个的值?

jsf - 什么时候在JSF中使用Serializable支持bean?

将 "9632580147"转换为 int 时 Java 解析错误

java - 使用maven使jar成为jsf中的自定义组件

java - 在 GWT 应用程序中使用 session

java - 无法使用 JPADatabase 从 H2 生成 Jooq 类

java - linux arm 上的 Jinput(树莓派)