-->
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.  [ 2 posts ] 
Author Message
 Post subject: Need help in Reverse Engineering from JDBC Connection
PostPosted: Mon Nov 06, 2006 5:17 pm 
Newbie

Joined: Mon Nov 06, 2006 5:11 pm
Posts: 3
Hello,
I am trying to generate java code from dabase schema. I am not sure why I am not getting list of tables from the database. I am eclipse IDE with hibernate plugin & features.

Note: I am able to access the database user and table using SQL Plus. I did ensure that ORCL is running on port 1521.

Here is my config file
hibernate-configuration>
<session-factory>
<property name="hibernate.bytecode.use_reflection_optimizer">false</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">bookdemo</property>
<property name="hibernate.connection.url">
jdbc:oracle:thin:@localhost:1521:ORCL</property>
<property name="hibernate.connection.username">bookdemo</property>
<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
</session-factory>
</hibernate-configuration>

Please help me in understanding the concept of Reverse Engineeing in hibernate.

Thanks,
Adepu


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 07, 2006 2:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you don't tell if you see any errors or if it just seem to sit there fetching tables "forever" ....since your config indicates that on oracle it will actually read you complete db, where as you probably rather would have it to look only in your specific schema.

theeasiest way of doing that is to specify default_schema to your username (uppercase is important with oracle)

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.