-->
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: hibernate.default_schema ignored?
PostPosted: Wed Oct 03, 2007 5:30 pm 
Newbie

Joined: Wed Oct 03, 2007 4:56 pm
Posts: 2
Hibernate version: NHibernate 1.2.0

I'm setting the default schema in my App.config as follows:

<nhibernate>
...
<add key="hibernate.default_schema" value="TESTDB"/>
</nhibernate>

However, the schema export tool ignores this and prepends 'dbo' to the schema objects. And worse, NHibernate is prepending the 'dbo' when referencing an Oracle sequence table (after I edited the generated DDL file in order to create the tables).

Is this known to work? Am I missing something? Thanks in advance.


Top
 Profile  
 
 Post subject: Problem Solved
PostPosted: Wed Oct 03, 2007 9:01 pm 
Newbie

Joined: Wed Oct 03, 2007 4:56 pm
Posts: 2
Um, never mind. My bad...

We had set the schema attribute of the hibernate-mapping element to 'dbo' (for a SQL Server implementation), and that evidently takes precedence over the hibernate.default_schema 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.