hi,
i utilized sql2java to generate code with an actual database. worked perfectly. here are the changes to the properties file..
# for DB2 with DB2 Universal JDBC Driver.. you need to get db2jcc.jar and db2jcc_license_cu.jar in sql2java's classpath
jdbc.driver=com.ibm.db2.jcc.DB2Driver
jdbc.url=jdbc:db2:<place your db2 instance name here>
jdbc.username=<place your user name here>
jdbc.password=<place your password here>
jdbc.schema=<place your db2 schema name here>
generatedkey.retrieve=auto
keep up the good work..
peddu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
i utilized sql2java to generate code with an actual database. worked perfectly. here are the changes to the properties file..
# for DB2 with DB2 Universal JDBC Driver.. you need to get db2jcc.jar and db2jcc_license_cu.jar in sql2java's classpath
jdbc.driver=com.ibm.db2.jcc.DB2Driver
jdbc.url=jdbc:db2:<place your db2 instance name here>
jdbc.username=<place your user name here>
jdbc.password=<place your password here>
jdbc.schema=<place your db2 schema name here>
generatedkey.retrieve=auto
keep up the good work..
peddu