HIbernate - HBM.xml Automatic generation from DB Schema
Is there any plugin ava开发者_如何学Pythonilable for Eclipse or Netbeans or any other IDE which can help me generate the hbm.xml by directly reading the schema from the database.
Writing those XMLs seem to be unnecessary waste of time, and feel it should be automated.
For NetBeans, have a look at Using Hibernate in a Web Application.
For Eclipse, use the Hibernate Tools plugin. Here is a tutorial demonstrating how to use its Reverse Engineering feature.
Hibernate Synchronizer can help also.
Hibernate Tools includes all sorts of tools for doing hbm and class conversions.
精彩评论