|
i dont the prpopties file withe db2 is this ok:?
# The target database platform.
torque.database = db2
# The target package to put the generated classes in.
torque.targetPackage = com.kazmier.om
# The JDBC URL that Torque can use to create and
# drop databases if instructed to do so.
torque.database.createUrl = jdbc:db2://127.0.0.1/db2
# The JDBC URL that will be used to create tables in your database.
torque.database.buildUrl = jdbc:db2://127.0.0.1/bookstore
# The JDBC URL that will be used to access your database.
torque.database.url = jdbc:db2://127.0.0.1:50000/bookstore
# The JDBC database driver to use when connecting to your database.
torque.database.driver = COM.ibm.db2.jdbc.app.DB2Driver
# The administrative username that has sufficient privileges to create
# and drop databases and tables that Torque executes at generation time.
torque.database.user = yoach
# The administrative password for the supplied username.
torque.database.password = 123
# The hostname or IP address of your database server.
torque.database.host = 127.0.0.1
and what i need to write im project.xml?
for example in mysql i write:
<dependency>
<artifactId>mysql-connector-java<artifactId>
<groupId>mysql<groupId>
<version> 5.0.4version>
</dependency>
</dependencies>
in db2 what i need to write in:artifactId,groupId,version?
i think i have db2 type 4 the new.
thanks for your help yoach.
|