Search code examples
javadatabasehibernatedb2pojo

Hibernate Pojo Generator for IBM DB2


I used Hibernate Pojo Generator to generate hibernate stuff. I done it successfully with MySql, but when I tried to generate classes with DB2 it fails. I check hbnpojogen-core-1.4.4-jar-with-dependencies.jar it did not contain DB2 drivers. I added them but it again fails.

I want to know whether Hibernate Pojo Generator works with DB2?


Solution

  • From this tool's website, in the Known Issues section

    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!)

    So it seems that it may not work with DB2.