-->
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: Can I select the dialect per Datasource?
PostPosted: Thu Jul 03, 2008 8:21 am 
Newbie

Joined: Wed Nov 02, 2005 4:03 am
Posts: 7
Hello all!

Environment: JBoss 4.2 / EJB3

I want to make my application compatible to several databases. One EAR, different possible datasources.

For some reason (which is not topic of this post), when using Oracle as database, I have to supply my own dialect.

I can put a hibernate.dialect property into my persistence.xml, but persistence.xml is inside EAR, so changing datasource won't be that simple anymore.

Is there some other place where I can put the dialect property? Or do you have any other idea?

Thank you very much!


Marcus.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 03, 2008 10:45 am 
Regular
Regular

Joined: Wed Apr 09, 2008 10:28 am
Posts: 52
don't know if this will help you, still worth a try :), if your using spring you can extend your configuration into the spring application context.


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.