I have an application that uses JPA(backed with hibernate) for handling persistence. The application can be extended to work with different databases to query the information from. What would like to do is provide an automated tool(a java module or ant script or similar) to generate the domain classes from the database schema. I know there exists hibernate reverse engineering tools, but I think it only works with an IDE(like eclipse). What I'm looking for is a tool that I can run from command line. Any hints to accomplish this will be greatly appreciated. Thank you.
我有一个使用JPA(以hibernate为后盾)处理持久性的应用程序。应用程序可以扩展为使用不同的数据库来查询信息。想要做的是提供一个自动化工具(java模块或ant脚本或类似的)来从数据库模式生成域类。我知道存在hibernate逆向工程工具,但我认为它只适用于IDE(如eclipse)。我正在寻找的是一个可以从命令行运行的工具。任何提示,以实现这一点将不胜感激。谢谢。
1 个解决方案
#1
0
(I guess this question may be a duplicate one. commandline equivalent to reverse engineering in Hibernate tools?)
(我猜这个问题可能是重复的。命令行相当于Hibernate工具中的逆向工程?)
Hibernate tools has ant tasks. Please check them.
Hibernate工具有ant任务。请检查一下。
#1
0
(I guess this question may be a duplicate one. commandline equivalent to reverse engineering in Hibernate tools?)
(我猜这个问题可能是重复的。命令行相当于Hibernate工具中的逆向工程?)
Hibernate tools has ant tasks. Please check them.
Hibernate工具有ant任务。请检查一下。