-->
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.  [ 1 post ] 
Author Message
 Post subject: Can I tell hibernate to ignore alternate schemas?
PostPosted: Wed Jun 17, 2009 10:17 pm 
Newbie

Joined: Wed Aug 13, 2008 8:21 pm
Posts: 1
I'm using JBOSS 4.2.2.GA and deploying my project in an ear file. I'm using a DB2 datasource defined in a deployed xml file. Right now, we're in development and have several slichtly-different schemas in the database.

I can tell the datasource to use a default schema. but have not figured out how to tell hibernate to ONLY use the default schema, and to ignore the other schemas. I don't want it to even LOOK for them. JBoss tells me about all the other schemas it finds. I snarl helplessly at it while it thinks it's being helpful.

I can tell persistence.xml to use the default schema so I can get my code to work in development, This is not a solution I can deliver to production as the schema choice is sealed tightly in the ear file where it cannot be configured.

Is there a way I can tell hibernate to use ONLY the default connection in the datasource? Failing that, is there a way to tell it to look for the default connection in a file that's not sealed in the ear?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.