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: selecting a dialect before build a sessionfactory
PostPosted: Thu May 20, 2010 9:59 am 
Newbie

Joined: Thu May 20, 2010 9:45 am
Posts: 2
Hi,

my company's application is in the progress of supporting a second database alongside our current one. This means we will be supporting 2 different dialects, the old one, Postgres8 and the new one Oracle10g. My question is if it's possible to alter Hibernate's dialect depending on a server setting.

The problem I face is that we have to set our dialect in hibernate.cfg.xml for various reasons(our database schema builder depends on it among other things) and so, as far as I have understood it, this means that I cannot use the Configuration class because Hibernate will overwrite it. What I have also tried is using a server setting for use in JNDI in combination with Spring, however, I don't think it's possible to create a Dialect object with Spring.

I'm currently looking for another solution for this problem, does someone have any ideas?


Top
 Profile  
 
 Post subject: Re: selecting a dialect before build a sessionfactory
PostPosted: Fri May 21, 2010 2:33 am 
Newbie

Joined: Thu May 20, 2010 9:45 am
Posts: 2
//never mind, I was annoyed by the spambot which now seems to be removed.


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.