spring roo vs appfuse生成服务/ dao层 [英] spring roo vs appfuse generate service /dao layer

查看:121
本文介绍了spring roo vs appfuse生成服务/ dao层的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有经验的用户对spring roo和appfuse的反馈。您认为哪个更好地逆向工程数据库表并生成服务层,dao层和jpa实体?

I am looking for feedback from experienced users on spring roo and appfuse. Which do you think does a better job reverse engineering database tables and generating a service layer, dao layer, and jpa entities?

如果我没有弄错的话,spring roo目前还不能逆向工程数据库。

If I am not mistaken, spring roo currently cannot reverse engineer a database.

推荐答案

你是不对的,你不能在Roo中对数据库进行逆向工程。有这是一个开放的JIRA项目,您可以投票。

You are correct that you can't reverse engineer a database in Roo. There's an open JIRA item for this which you can vote up.

但是,您可以尝试使用 Eclipse Hibernate工具对数据库进行逆向工程,然后修改这些对象以使其成为Roo实体。这可能会涉及大量的手工工作。

However, you could try using the Eclipse Hibernate tools to reverse engineer your database, then modify those objects to make them Roo Entities. That probably would involve a lot of manual work though.

对于AppFuse,有 AppFuse Maven插件,可以从现有数据库为您创建整个AppFuse项目。我不确定它目前是否正常工作,因为我提到它的最后一个人说它们无法正常工作。

For AppFuse, there's the AppFuse Maven plugin which can create the entire AppFuse project for you from an existing database. I'm not sure if it's currently working though, because the last person I mentioned it to said they couldn't get it working.

根据您的要求,您可以也想尝试 Grails框架。有一个名为 GRAG 的工具可以从数据库中对Grails应用程序进行逆向工程。

Depending on your requirements, you may also want to give the Grails framework a try. There's a tool called GRAG that can reverse engineer a Grails application from a database.

这篇关于spring roo vs appfuse生成服务/ dao层的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆