Hibernate version: Hibernate3.jar
Eclipse Version: Version: 3.4.2 Build id: M20090211-1700
Hibernate Tool version: Hibernate Tools for Eclipse Version: 3.2.4.Beta1-R200810311334
jkd:1.5.0_17
I have spent the whole day to retrieve the class from the existing oracle DB and nothing comes out.
My procedure:
1. Create a hibernate.cfg.xml using "Hibernate Configuration File" and also select "Create a console configuration".
<?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">AAAAA</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@emsdev5:1521:ems</property>
<property name="hibernate.connection.username">AAAAA</property>
<property name="hibernate.default_catalog">ems</property>
<property name="hibernate.default_schema">ems</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
</session-factory>
</hibernate-configuration>
2. In "Hibernate Console Config", select
Main:
type = Core
DB connection: Hibernate configuraed connection
Configuration file: \Hibernate\src\hibernate.cfg.xml
Classpath:
Add classes12.zip, oracles' driver zip file.
saved as HibernateConsoleConfig
3. In "Hibernate Code Generation Configurations"
create a config called "testReverse"
Main:
Console conf: Hibernate ConsoleConfig
Reverse engineer from JDBC connection is UNChecked.
Exporters:
Select "Daomain code", "Hibernate XML mappins" and "Dao code"
Click "run" and nothing comes out. No error or progress.
On the eclipse debug screen, the message is:
Application Started: 7473
HelpUtil <Debug>: --getHelpString (helpkey = CONTEXT_ID_CP_WIZARD_PAGE, helpPlug
inId = org.eclipse.datatools.connectivity.ui returned null
HelpUtil <Debug>: --getHelpString (helpkey = CONTEXT_ID_NEW_CP_WIZARD, helpPlugi
nId = org.eclipse.datatools.connectivity.ui returned null
HelpUtil <Debug>: --getHelpString (helpkey = CONTEXT_ID_NEW_CONNECTION_PROFILE_P
AGE, helpPluginId = org.eclipse.datatools.connectivity.ui returned null
HelpUtil <Debug>: --getHelpString (helpkey = CONTEXT_ID_NEW_CONNECTION_PROFILE_P
AGE, helpPluginId = org.eclipse.datatools.connectivity.ui returned null
HelpUtil <Debug>: --getHelpString (helpkey = GENERIC_DB_PROFILE_WIZARD_PAGE, hel
pPluginId = org.eclipse.datatools.connectivity.ui returned null
HelpUtil <Debug>: --getHelpString (helpkey = CONTEXT_ID_NEW_CONNECTION_PROFILE_W
IZARD, helpPluginId = org.eclipse.datatools.connectivity.ui returned null
HelpUtil <Debug>: --getHelpString (helpkey = GENERIC_DB_PROFILE_WIZARD, helpPlug
inId = org.eclipse.datatools.connectivity.ui returned null
HelpUtil <Debug>: --getHelpString (helpkey = CONTEXT_ID_NEW_DRIVER_DIALOG, helpP
luginId = org.eclipse.datatools.connectivity.ui returned null
Not sure what happened? Really appreciate your help.
|