-->
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.  [ 5 posts ] 
Author Message
 Post subject: Problem in POJO and mapping files generation in tool
PostPosted: Mon Jan 21, 2008 6:53 am 
Newbie

Joined: Mon Jan 21, 2008 6:32 am
Posts: 2
I m new to hibernate and using Eclipse 3.2 and HIbernate tool plug in version 3.2.0.

While trying Hibernate code generation only hibernate.cfg.xml is generating and POJO and mapping xml files are not being generated.

here is my cfg.xml file


<?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.bytecode.use_reflection_optimizer">false</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">sandbox</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@192.168.92.200:1521:gnt01d</property>
<property name="hibernate.connection.username">sandbox</property>
<property name="hibernate.default_schema">sandbox</property>
<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
</session-factory>
</hibernate-configuration>



but i m able to generate all files for one database but not able to do in other database. is it because of database pblm?
what can be the possible reason?
can anyone help me out?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 21, 2008 8:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
not sure what your question is exactly but since you are using oracle I guess it is related to oracles metadata being case sensitive.

use <property name="hibernate.connection.username">SANDBOX</property>

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 9:10 am 
Newbie

Joined: Mon Jan 21, 2008 6:32 am
Posts: 2
max wrote:
not sure what your question is exactly but since you are using oracle I guess it is related to oracles metadata being case sensitive.

use <property name="hibernate.connection.username">SANDBOX</property>

Thanks for the post...

I tried this but still facing same problem.Also In hibernate Configuration Console when i m Expanding Database it is not showing Schema and process fetching children is started and it took 8 hrs to fetch database children.




Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 10:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if it took 8 hrs its because you did not set the default_schema. it is fetching the whole database.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 10:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
sorry I see that i pasted the wrong property.

it should be hibernate.default_schema SANDBOX

_________________
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.  [ 5 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.