简体   繁体   English

HIbernate-HBM.xml从数据库架构自动生成

[英]HIbernate - HBM.xml Automatic generation from DB Schema

Is there any plugin available for Eclipse or Netbeans or any other IDE which can help me generate the hbm.xml by directly reading the schema from the database. 是否有可用于Eclipse或Netbeans或任何其他IDE的插件,可以通过直接从数据库中读取模式来帮助我生成hbm.xml。

Writing those XMLs seem to be unnecessary waste of time, and feel it should be automated. 编写这些XML似乎是不必要的时间浪费,并且认为它应该是自动化的。

For NetBeans, have a look at Using Hibernate in a Web Application . 对于NetBeans,请参阅在Web应用程序使用休眠

For Eclipse, use the Hibernate Tools plugin. 对于Eclipse,请使用Hibernate Tools插件。 Here is a tutorial demonstrating how to use its Reverse Engineering feature. 这是一个演示如何使用其逆向工程功能的教程

Hibernate Synchronizer也可以提供帮助。

Hibernate Tools包括用于进行hbm和类转换的各种工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM