-->
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: Hibernate Tool problem with Oracle 9i
PostPosted: Mon Jan 31, 2005 8:13 am 
Beginner
Beginner

Joined: Mon Jan 31, 2005 7:53 am
Posts: 32
Location: Madrid - Spain
Hi everyone, I'm trying to use Hibernate 3 beta2. I've read lots of documentation about it from many URLs (and mainly from Hibernate Website). I write all of you as my last chance to solve the problem I have regarding Hibernate Tools. I have an Oracle9i Enterprise Edition Release 9.2.0.1.0 database and I would like to use Hibernate 3 on it. Thus, I've downloaded Hibernate Tools alpha1 for Hibernate 3.0. Besides, I've read and complied all requirements (Eclipse 3.1M14 and JBoss IDE 1.4.x, in my case 1.4.1, everything installed from scratch). By following all steps indicated in the documentation and the Flash format example, I've tried to generate my database corresponding java sources. Although I've achived to finished successfully the two initial steps, I haven't been able to generate the last step. I have tried many times and from many schemas on the same database. As you can see below, it always generates the same error it doesn't matter what schema I use. Thus, can somebody give me any clue about why is this happening?


Image

I'm aware Hibernate tools isn't a final realise and it must be refined in the future. However, it would be really helpfull if you could provide me some information of why this error happens. I would also appreciate you reply as soon as possible, since time really counts in my company .

If you need any addicional data, please do not hesitate to contact me. I'm looking forward to hearing from you.

Thanks for everything in advance.

PS. Sorry, if my English isn't as perfect as I would like to.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 31, 2005 8:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
This is probably caused by the fact our rev.eng. tool gets information about *all* your tables in the database - and somehow oracle is reporting the same column twice (or we have a bug in jdbcbinder ,)

But i think you can solve your issue by simple specifying which schema you will be using in hibernate.cfg.xml (hibernate.default_schema).

This will make JDBCBinder only pick up the tables for this schema - thus avoiding these more or less weird system table/columns)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 31, 2005 9:08 am 
Beginner
Beginner

Joined: Mon Jan 31, 2005 7:53 am
Posts: 32
Location: Madrid - Spain
Thanks! It worked perfectly as you said! :)


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.