我用了Hibernate Pojo Generator生成 hibernate 的东西。我使用 MySql 成功完成了此操作,但是当我尝试使用 DB2 生成类时,它失败了。我检查 hbnpojogen-core-1.4.4-jar-with-dependency.jar 它不包含 DB2 驱动程序。我添加了它们,但它再次失败。
我想知道Hibernate Pojo Generator是否可以与DB2一起使用?
最佳答案
从此工具网站的“已知问题”部分
Although JDBC is meant to hide database differences, each connector driver has its quirks; therefore at the moment, the generator is only known to work correctly on MySQL databases though it has been reported that MS-SQL support looks pretty good too. Support for other databases, notably PostgreSQL, is coming soon. Other databases are as yet untested (submit reports!)
看来它可能不适用于 DB2。
关于java - IBM DB2 的 Hibernate Pojo 生成器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8591817/