-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Nothing comes out in "Hibernate Code Generation"
PostPosted: Sat Mar 21, 2009 1:10 am 
Newbie

Joined: Sat Mar 21, 2009 12:12 am
Posts: 2
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 08, 2009 12:41 am 
Newbie

Joined: Wed Feb 23, 2005 9:57 pm
Posts: 16
Try uppercasing the schema name.


Top
 Profile  
 
 Post subject: thanks for the reply
PostPosted: Wed Apr 08, 2009 1:00 am 
Newbie

Joined: Sat Mar 21, 2009 12:12 am
Posts: 2
I update the Eclipse and it works.

I think it is caused by the lower version.

Thanks for the reply


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.