My environment is described as below:
Eclipse : eclipse-SDK-3.2.1-win32
Hiberante tools : HibernateTools-3.2.0.beta8
WTP : wtp-R-1.0.3-200607290929
Oracle : ora9i
OS : WIN XP PRO
With the following steps, I can not generate POJO or *.hbm.xml filse:
1. New a java project in eclipse.
2. New a Hibernate configuration file with related wizard.
In this step I generated a hibernate configure file described as below(
BECAUSE I DON'T KNOW WHAT
hibernate.default_catalog MEAN, SO I USE hibernate.default_schema FILLED HERE, IS THIS A PROBLEM ?? ):
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>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">mvpdev2x</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:ramon</property>
<property name="hibernate.connection.username">mvpdev2x</property>
<property name="hibernate.default_catalog">mvpdev2x</property>
<property name="hibernate.default_schema">mvpdev2x</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
</session-factory>
</hibernate-configuration>
3. Created a "Hibernate Console configuration file" with "Hibernate configuration file" created in step 2. Included
ojdbc14.jar file for oracle server.
4.
Then I open the "Hibernate Configurations" view in Eclipse, there are there items in this view, they are
"Configuration", "Session Factory" and "Database", WHEN I TRY TO CLICK "Database", NO TABLES RETRIEVED FROM MY DATABASE, just a "pending" sign shown few seconds and no error shown here.