-->
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: HBM2DDL SchemaUpdate gets right table but wrong owner
PostPosted: Thu Mar 22, 2007 4:26 pm 
Newbie

Joined: Thu Sep 28, 2006 11:09 am
Posts: 4
Location: Auburndale, MA, USA
Hibernate version: 3.2.2

Name and version of the database you are using: Oracle 9.2 for Windows 2000

I'm trying to create a schema upgrade script via HBM2DDL and I'm running into an anomaly. When the tool looks up a table in the Oracle catalog, it doesn't specify the "owner" or "schema" name (the user id that I specified in the JDBC connection parms). It finds the first table with a matching name and creates SQL Alter Table stmts accordingly. Unfortunately, the table names as specified in my HBM files occur many times within my Oracle instance, under many different User IDs. Sometimes it finds the correct table but most times it encounters the wrong table.

Is there a parameter I can specify that would limit the tool to finding only tables owned by a specific User ?

I'm using the tool from within an ANT target on Widows XP.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 22, 2007 5:32 pm 
Newbie

Joined: Thu Sep 28, 2006 11:09 am
Posts: 4
Location: Auburndale, MA, USA
Never mind. I figured it out. I needed to specify this config param :

<property name="hibernate.default_schema">MyOwner</property>


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.