By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,760 Members | 969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,760 IT Pros & Developers. It's quick & easy.

hello i need help with torque (java )to setup him to db2

P: 1
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.
Jul 17 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.