-->
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.  [ 3 posts ] 
Author Message
 Post subject: DB Schema name from a table
PostPosted: Mon Jun 07, 2010 11:31 am 
Newbie

Joined: Mon Jun 07, 2010 11:21 am
Posts: 2
We have an Spring + hibernate java application on jboss app server. Currently we are taking db schema name from the hibernate properties mentioned in application Context XML.

HIbernate Default Schema in hibernate properties. ( Current )

We have a requirement to take the SB Schema name from one of the database table.

I am bit confused, Where to insert this logic in spring + Hibernate configuration.

Please help.


Top
 Profile  
 
 Post subject: Re: DB Schema name from a table
PostPosted: Wed Jun 09, 2010 2:20 pm 
Newbie

Joined: Mon Jun 07, 2010 11:21 am
Posts: 2
Please help on this question.


Top
 Profile  
 
 Post subject: Re: DB Schema name from a table
PostPosted: Thu Jun 10, 2010 8:54 am 
Beginner
Beginner

Joined: Thu Feb 08, 2007 10:40 am
Posts: 46
Try to not configure the hibernate.default_schema property, i.e. remove it from your properties file. Hibernate will then automatically use the schema that is the default for the defined database user.


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