Hello,
I am trying to use
Hibernate tools 3.0 alpha1 to reverse engineer hbm.xml and POJO code. I am using Oracle 9.1.x database with Eclipse-SDK-3.1M4-win32.
I created a source folder called 'DataAccess' below the Project root of 'TestJavaProject'. I run the Hibernate Artifact generation from the DataAccess folder but get only one file generated in the output directory. The
only file that was generated was
GeneralHbmSettings.hbm.xml
I have the following entries in the hibernate.cfg.xml file, which is stored in the TestJavaProject level:
Code:
<property name="hibernate.connection.username">userid</property>
<property name="hibernate.connection.password">passwd</property>
<property name="hibernate.default_schema">userid</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@cpsdev08:30516:CADABC1</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
To get around the Oracle driver not found error, I had to copy the
classes12.zip file also in the TestJavaProject (from the c:\Oracle\jdbc\lib) since this file contains the class for
Code:
oracle.jdbc.driver.OracleDriver
.
Every time I run the artifact generation, it runs successfully without any message but just generates the GeneralHbmSettings.hbm.xml file.
Any help or pointers would be most appreciated.
Regards.