用于将数据库表转换为hibernate的实体java类的工具(A tool for converting database tables to entity java classes for hibernate)
我需要一个工具将数据库表转换为hibernate的实体java文件。
有20个表(mysql),我不想将表的列名复制到我的Java文件中,依此类推。
有什么建议么 ?
谢谢。
I need a tool for converting database tables to entity java files for hibernate.
There are 20 tables (mysql) and I don't want to copy table's column name to my Java file and so on.
Any suggestions ?
Thanks.
最满意答案
Hibernate工具 。
请记住,数据库逆向工程工具将生成的实体类/映射可能不太理想(取决于数据库的复杂性),您必须手动更新它们。
看看这个问题 。
Hibernate Tools.
Keep in mind that entity classes / mappings that Database Reverse Engineering tool will generate may not be ideal (depending on complexity of your database) and you'll have to manually update them.
Take a look at this question as well.
更多推荐
发布评论