-->
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.  [ 7 posts ] 
Author Message
 Post subject: oracle synonyms
PostPosted: Wed Sep 06, 2006 9:19 am 
Newbie

Joined: Tue Sep 05, 2006 8:23 am
Posts: 7
hi all,

i have a problem when trying to reverse engineering from an orale database; it doesn't generate hbm and code from sysnonyms; from tables there's not a problem;i could do a workaround but i want to know if there is possible to reverse engineering from synonyms and how to do that .

thanks,
Viorel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 2:49 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
there were issues with synonyms once, don't know if we fixed them yet.

look in jira - patches welcome.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 7:14 pm 
Newbie

Joined: Wed Sep 06, 2006 9:54 am
Posts: 9
Hi,

max wrote:
there were issues with synonyms once, don't know if we fixed them yet


But why you don't ignore synonyms then? I don't know, how you figure out the tables, but in oracle, just do an

Code:
SELECT * FROM user_tables

or

Code:
SELECT * FROM user_objects WHERE object_type = 'TABLE'


and synonyms staying untouched. I have the same problem and have to delete always all synonyms, before starting reverse engeneering. And we have around 80 synonyms in our db-schema.

reguards,
rig


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 7:18 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you first say you dont get synonyms generated and then afterwards says that i dont ignore synonyms ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 7:30 pm 
Newbie

Joined: Wed Sep 06, 2006 9:54 am
Posts: 9
I mean: if hbm2hbmxml is unable to handle (oracle?)-synonyms, why it throws an error while reverse engeneering instead of ignoring them and only consider "real"-tables?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 7:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hbm2hbmxml does not care about synonyms.

it is the reverse engineering that has issues e.g. jdbcconfiguration.

Now you say it reports an error, what is that error ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 07, 2006 8:00 pm 
Newbie

Joined: Wed Sep 06, 2006 9:54 am
Posts: 9
Hi,

2 days ago, I configured hbm2hbmxml for reverse engeneering, started it and got an error because of a synonyms (the name of the synonym was contained in the error-message). To avoid these error, I deleted the synoyms in the db and run hbm2hbmxml again and everything works fine.

To show you the error, I recreate the deleted synonyms, run hbm2hbmxml and ... nothing. everything works fine. I changed the db-schema to one only contains synoyms and started hbm2hbmxml again and everythings works fine, too.

Don't know what to do/say :-)

Perhaps the Thread-Starter could post a screenshot - I'm unable

best reguards
rig


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