我在谷歌上搜索 Hibernate to POJO Generator 并找到了这个 Hibernate POJO Generator .
我下载了它的 jar 文件,但找不到任何使用方法。
我想通过提供一个数据库表模式来生成所有与 Hibernate DAO 相关的类。
我知道另一种方法是使用 eclipse 插件,但我想从 Hibernate POJO Generator 生成类。
最佳答案
用法记录在用法示例页面中:
HbnPojoGen is not (yet) an eclipse plugin.
To use, run the jar file provided together with a config file which you’ll have to customize to your liking as follows:
java -jar hbnPojoGen.jar config.xml
The configuration file contains everything necessary to generate your source code.
关于java - hibernate 到 POJO 生成器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6609554/