-->
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: SchemaUpdate and duplicate table names in different schemas
PostPosted: Wed Jun 23, 2004 10:17 am 
Newbie

Joined: Wed Jun 23, 2004 9:47 am
Posts: 1
I am using Hibernate v2.1.3 against Oracle 9i, and am having problems using SchemaUpdate where tables with the same name exist in different schemas.

For example, when the target table is not present, but there is a table with that name in another schema, its details are retrieved by the metadata query, which seems to match on table name but not schema... UpdateSchema then generates an 'alter table' script based on alterations needed to the existing table in the other schema - but then tries to run it against the missing table in the correct schema - so it hits a ORA-00942: table or view does not exist error.

(This seems to be happening even when the 'duplicate' table is not in the schema specified in the mapping file or in the hibernate connection schema...)

Has anyone else encountered this problem? Is there a setting I could be using to avoid it?

Thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 04, 2005 12:02 pm 
Newbie

Joined: Mon Jul 11, 2005 4:25 am
Posts: 5
I had the same problem here ...

I was lucky, that this was only a test system.

I changed the SchemaUpdate-Tool in the way, that you can tell it which schema to update.

I'll try to make a patch and post it in Jira.


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.