Thanks for help!
Here is my hibernate.cfg.xml
If you see something strange...
Note : The file "org/wgt/base/mapping/Contact.hbm.xml" is in a JAR file defined in my classpath....so...
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="HibernateSessionFactory">
<!-- Database connection settings -->
<property name="hibernate.connection.datasource">jdbc/WGTDB</property>
<property name="hibernate.connection.username">db2user</property>
<property name="hibernate.connection.password">db2pass</property>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
<!-- Drop and re-create the database schema on startup -->
<mapping resource="org/wgt/base/mapping/Contact.hbm.xml"/>
</session-factory>
</hibernate-configuration>
[/code]