I'm trying to create hibernate mapping files and java objects using bottom up approach. I'm using eclipse and hibernate plugging tools.
Eclipse: version 3.3.2
Hibernate Tools:HibernateTools-3.2.2.Beta1
Name and version of the database you are using:DB2 on zOS v8.1
My Hibernate config file(hibernate.cfg.xml) is correctly configured to point to a DB2 database. The connection params are verified.
Upon creating Hibernate Console using above hibernate config, I DO NOT see the listing of database tables. For a quick moment the status bar displays "fetching children from Database" but then NO list appears.
I tried
org.hibernate.dialect.DB2Dialect dialect and same result.
Can someone help ?
Thanks.
Here is the config file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="sessionFactory">
<property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
<property name="hibernate.connection.password">XXXXX</property>
<property name="hibernate.connection.url">jdbc:db2://myserver.com:5027/SIDJDB2L</property>
<property name="hibernate.connection.username">onlyuser</property>
<property name="hibernate.default_schema">SIDDB2L</property>
<property name="hibernate.dialect">org.hibernate.dialect.DB2390Dialect</property>
</session-factory>
</hibernate-configuration>